Closed
Bug 1329689
Opened 7 years ago
Closed 7 years ago
QuotaManager: Upgrade loop should also cover "from 0_0 to 1_0" case
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
Details
Attachments
(1 file)
7.22 KB,
patch
|
asuth
:
review+
|
Details | Diff | Splinter Review |
We're adding new upgrade methods in other bugs, but I found out that our upgrade loop is buggy. It works fine right now because there are no real upgrade methods in the loop. The problem is that if storage.sqlite doesn't exist (|if (newDatabase)| branch), we execute all the legacy stuff like upgrading indexedDB/ to storage/, but we don't execute the upgrade loop at all. It means that if we add a new upgrade method to the loop and then someone with an old profile (no storage.sqlite) jumps directly to current Nightly, the new upgrade method won't be executed at all. I refactored stuff a bit to fix this issue and I also added a small optimization for the case when we have a new profile, in which case we don't have to execute the upgrade loop.
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=188c601d78c0c14c14b423051718622af93b2fb6
Comment 3•7 years ago
|
||
Comment on attachment 8825093 [details] [diff] [review] patch Review of attachment 8825093 [details] [diff] [review]: ----------------------------------------------------------------- Nice fresh profile optimization!
Attachment #8825093 -
Flags: review?(bugmail) → review+
Pushed by jvarga@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b93a1c921f66 QuotaManager: Upgrade loop should also cover "from 0_0 to 1_0" case; r=asuth
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b93a1c921f66
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•