Closed
Bug 1110585
Opened 8 years ago
Closed 8 years ago
Inconsistent timestamp in storage metadata file
Categories
(Core :: Storage: IndexedDB, defect)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: hectorz, Assigned: janv)
References
Details
Attachments
(1 file)
898 bytes,
patch
|
bent.mozilla
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Timestamp in storage metadata comes from two sources: PR_Now for new directory, GetLastModifiedTime for existing directory. But value from PR_Now is in microsecond while that from GetLastModifiedTime is in millisecond.
Comment 1•8 years ago
|
||
During B2G startup: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1781.1857] 0xb4f09a32 in mozilla::dom::quota::QuotaManager::EnsureOriginIsInitialized (this=this@entry=0xb6a98980, aPersistenceType=aPersistenceType@entry=mozilla::dom::quota::PERSISTENCE_TYPE_PERSISTENT, aGroup=..., aOrigin=..., aIsApp=aIsApp@entry=false, aHasUnlimStoragePerm=aHasUnlimStoragePerm@entry=false, aDirectory=0xa9ec1990) at ../../../dom/quota/QuotaManager.cpp:2379 2379 MOZ_ASSERT(timestamp <= PR_Now());
Assignee | ||
Comment 2•8 years ago
|
||
Assignee: nobody → Jan.Varga
Status: NEW → ASSIGNED
Attachment #8545185 -
Flags: review?(bent.mozilla)
Comment on attachment 8545185 [details] [diff] [review] patch Review of attachment 8545185 [details] [diff] [review]: ----------------------------------------------------------------- Can we do this the other way and convert PR_Now to milliseconds instead? I don't think we need microsecond resolution in quota stuff...
Assignee | ||
Comment 4•8 years ago
|
||
(In reply to ben turner [:bent] (use the needinfo? flag!) from comment #3) > Comment on attachment 8545185 [details] [diff] [review] > patch > > Review of attachment 8545185 [details] [diff] [review]: > ----------------------------------------------------------------- > > Can we do this the other way and convert PR_Now to milliseconds instead? I > don't think we need microsecond resolution in quota stuff... Yeah, but we already have metadata files on the disk with origin access time stored in it and the value is in milliseconds.
Assignee | ||
Comment 5•8 years ago
|
||
(In reply to Jan Varga [:janv] from comment #4) > (In reply to ben turner [:bent] (use the needinfo? flag!) from comment #3) > > Comment on attachment 8545185 [details] [diff] [review] > > patch > > > > Review of attachment 8545185 [details] [diff] [review]: > > ----------------------------------------------------------------- > > > > Can we do this the other way and convert PR_Now to milliseconds instead? I > > don't think we need microsecond resolution in quota stuff... > > Yeah, but we already have metadata files on the disk with origin access time > stored in it and the value is in milliseconds. sorry, I meant *microseconds*
Comment on attachment 8545185 [details] [diff] [review] patch I'm ok with this but please assert that we don't overflow (e.g. (INT64_MAX / PR_USEC_PER_MSEC) > timestamp))
Attachment #8545185 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 7•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/20a7f674d668
Comment 8•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/20a7f674d668
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Assignee | ||
Comment 9•8 years ago
|
||
Comment on attachment 8545185 [details] [diff] [review] patch Approval Request Comment [Feature/regressing bug #]: This is a followup fix for bug 1083927. [User impact if declined]: I'm not aware of any big problems, but this fix is definitely needed for correctness [Describe test coverage new/current, TBPL]: We have an assertion for this, bug 1110010 proves it. [Risks and why]: The patch is very simple. [String/UUID change made/needed]: No string/UUID changes.
Attachment #8545185 -
Flags: approval-mozilla-aurora?
Updated•8 years ago
|
status-firefox36:
--- → affected
status-firefox37:
--- → fixed
Updated•8 years ago
|
Attachment #8545185 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 10•8 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/7679bb29a7c2
You need to log in
before you can comment on or make changes to this bug.
Description
•