Closed
Bug 1308447
Opened 9 years ago
Closed 1 year ago
Use mozStorageConnectionUtils and IncrementalVacuumConnection in dom/cache
Categories
(Core :: DOM: Service Workers, defect, P3)
Core
DOM: Service Workers
Tracking
()
RESOLVED
INVALID
People
(Reporter: ferjm, Unassigned)
References
Details
(Whiteboard: dom-lws-bugdash-triage)
Attachments
(1 file, 1 obsolete file)
|
36.89 KB,
patch
|
bkelly
:
review+
|
Details | Diff | Splinter Review |
Bug 1217544 moves storage related code shared by dom/cache and dom/backgroundsync to storage/mozStorageConnectionUtils* and storage/IncrementalVacuumConnection*. This bug is to make use of this shared code in dom/cache.
| Reporter | ||
Comment 1•9 years ago
|
||
| Reporter | ||
Comment 2•9 years ago
|
||
| Reporter | ||
Comment 3•9 years ago
|
||
| Reporter | ||
Comment 4•9 years ago
|
||
| Reporter | ||
Comment 5•9 years ago
|
||
| Reporter | ||
Comment 6•9 years ago
|
||
| Reporter | ||
Comment 7•9 years ago
|
||
| Reporter | ||
Comment 8•9 years ago
|
||
| Reporter | ||
Comment 9•9 years ago
|
||
| Reporter | ||
Comment 10•9 years ago
|
||
| Reporter | ||
Comment 11•9 years ago
|
||
| Reporter | ||
Comment 12•9 years ago
|
||
| Reporter | ||
Comment 13•9 years ago
|
||
| Reporter | ||
Comment 14•9 years ago
|
||
| Reporter | ||
Comment 15•9 years ago
|
||
| Reporter | ||
Comment 16•9 years ago
|
||
| Reporter | ||
Comment 17•9 years ago
|
||
| Reporter | ||
Comment 18•9 years ago
|
||
| Reporter | ||
Comment 19•9 years ago
|
||
| Reporter | ||
Comment 20•9 years ago
|
||
Attachment #8800385 -
Attachment is obsolete: true
| Reporter | ||
Updated•9 years ago
|
Attachment #8832160 -
Flags: review?(bkelly)
| Reporter | ||
Comment 21•9 years ago
|
||
| Reporter | ||
Comment 22•9 years ago
|
||
Comment 23•9 years ago
|
||
Comment on attachment 8832160 [details] [diff] [review]
v1
Review of attachment 8832160 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks! r=me with comments addressed.
::: dom/cache/DBSchema.cpp
@@ +388,5 @@
> {
> MOZ_ASSERT(!NS_IsMainThread());
> MOZ_DIAGNOSTIC_ASSERT(aConn);
>
> + nsTArray<nsCString> tablesSql;
These can be AutoTArray<> with the correct number of expected elements.
::: dom/cache/DBSchema.h
@@ +126,5 @@
> +// Grow the database in chunks to reduce fragmentation
> +const uint32_t kGrowthSize = 32 * 1024;
> +const uint32_t kGrowthPages = kGrowthSize / kPageSize;
> +static_assert(kGrowthSize % kPageSize == 0,
> + "Growth size must be multiple of page size");
Why is this stuff in the header? It seems like it should live in DBSchema.cpp. AFAICT only kMaxFreePages is used in another file.
Attachment #8832160 -
Flags: review?(bkelly) → review+
Updated•8 years ago
|
Priority: -- → P3
Updated•7 years ago
|
Assignee: ferjmoreno → nobody
Updated•3 years ago
|
Severity: normal → S3
Comment 24•1 year ago
|
||
This was mooted by the WONTFIXing of bug 1217544 because the refactoring discussed here did not happen; the dom/cache connection is still its own thing. (Bug 1217544 was initially duplicating the connection code but then was refactored to make things reusable.)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Whiteboard: dom-lws-bugdash-triage
You need to log in
before you can comment on or make changes to this bug.
Description
•