Closed
Bug 700544
Opened 14 years ago
Closed 14 years ago
IndexedDB: Start a transaction when created, not when first request is placed
Categories
(Core :: Storage: IndexedDB, defect)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
FIXED
People
(Reporter: sicking, Assigned: khuey)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
|
8.68 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
I.e. given the following code:
var trans1 = db.transaction("foo", READ_WRITE);
var trans2 = db.transaction("foo", READ_WRITE);
trans2.put("2", "key");
trans1.put("1", "key");
The objectStore should after the two transactions commit contain the value "2" since trans2 should run after trans1.
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → khuey
| Assignee | ||
Comment 1•14 years ago
|
||
I slipped some cleanup in TransactionThreadPool in here too.
Attachment #574376 -
Flags: review?(bent.mozilla)
Comment on attachment 574376 [details] [diff] [review]
Patch
Review of attachment 574376 [details] [diff] [review]:
-----------------------------------------------------------------
Ha, you tricked me.
::: dom/indexedDB/IDBTransaction.cpp
@@ +99,5 @@
> +}
> +
> +NS_IMPL_QUERY_INTERFACE1(StartTransactionRunnable, nsIRunnable)
> +
> +StartTransactionRunnable kDummyRunnable;
Nit: Let's call this gStartTransactionRunnable.
Attachment #574376 -
Flags: review?(bent.mozilla) → review+
| Assignee | ||
Comment 3•14 years ago
|
||
(In reply to ben turner [:bent] from comment #2)
> Comment on attachment 574376 [details] [diff] [review] [diff] [details] [review]
> Patch
>
> Review of attachment 574376 [details] [diff] [review] [diff] [details] [review]:
> -----------------------------------------------------------------
>
> Ha, you tricked me.
Indeed.
> ::: dom/indexedDB/IDBTransaction.cpp
> @@ +99,5 @@
> > +}
> > +
> > +NS_IMPL_QUERY_INTERFACE1(StartTransactionRunnable, nsIRunnable)
> > +
> > +StartTransactionRunnable kDummyRunnable;
>
> Nit: Let's call this gStartTransactionRunnable.
Done.
| Assignee | ||
Comment 4•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Updated•14 years ago
|
Keywords: dev-doc-needed
| Assignee | ||
Updated•14 years ago
|
Component: DOM → DOM: IndexedDB
Target Milestone: mozilla11 → ---
Version: Trunk → unspecified
Comment 5•10 years ago
|
||
Killing some old dev-doc-needed bugs ;-)
I've now documented this, adding a note in both the Transaction interface page, and the release notes for Firefox 11...
https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction
https://developer.mozilla.org/en-US/Firefox/Releases/11#IndexedDB
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•