Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Issue 2083203002: IndexedDB: Ensure transactions without requests commit in the same order (Closed)

Created:
4 years, 6 months ago by jsbell
Modified:
4 years, 6 months ago
Reviewers:
cmumford, palakj
CC:
chromium-reviews, blink-reviews, darin-cc_chromium.org, jsbell+idb_chromium.org, jam, cmumford
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IndexedDB: Ensure transactions without requests commit in the same order In the IDB back-end, a Commit() request that came through for a transaction that never had any requests was allowed to run the commit steps without having seen a Start() call from the transaction coordinator. While the operations would never run out of order, the commit would happens unexpectedly early from the point of view of script - i.e. before an earlier transaction with overlapping scope has completed. Handle this special case, using the existing commit_pending_ flag and a new test in Start(). R=palakj@chromium.org,cmumford@chromium.org BUG=614530 Committed: https://crrev.com/d546a9d9162ce273c8b789306ae934b5db9ed6d1 Cr-Commit-Position: refs/heads/master@{#401395}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -1 line) Patch
M content/browser/indexed_db/indexed_db_transaction.cc View 1 3 chunks +26 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/storage/indexeddb/empty-transaction-order.html View 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
jsbell
palakj@ - can you do an initial review of this patch?
4 years, 6 months ago (2016-06-21 23:40:59 UTC) #1
cmumford
lgtm % nits https://codereview.chromium.org/2083203002/diff/1/content/browser/indexed_db/indexed_db_transaction.cc File content/browser/indexed_db/indexed_db_transaction.cc (right): https://codereview.chromium.org/2083203002/diff/1/content/browser/indexed_db/indexed_db_transaction.cc#newcode202 content/browser/indexed_db/indexed_db_transaction.cc:202: void CommitUnused(scoped_refptr<IndexedDBTransaction> transaction) { Do you ...
4 years, 6 months ago (2016-06-22 16:53:38 UTC) #2
palakj1
On 2016/06/21 at 23:40:59, jsbell wrote: > palakj@ - can you do an initial review ...
4 years, 6 months ago (2016-06-22 18:32:53 UTC) #3
jsbell
Thanks! (Note that this test landed upstream; we can delete this copy when wpt rolls.) ...
4 years, 6 months ago (2016-06-22 18:53:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2083203002/20001
4 years, 6 months ago (2016-06-22 18:53:28 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-22 20:54:43 UTC) #8
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 20:55:55 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d546a9d9162ce273c8b789306ae934b5db9ed6d1
Cr-Commit-Position: refs/heads/master@{#401395}

Powered by Google App Engine
This is Rietveld 408576698