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

Issue 126263003: Revert 243344 "IndexedDB: Fix cursor prefetching edge cases" (Closed)

Created:
6 years, 11 months ago by ccameron
Modified:
6 years, 11 months ago
Reviewers:
Lei Zhang, jsbell
CC:
chromium-reviews
Visibility:
Public.

Description

Revert 243344 "IndexedDB: Fix cursor prefetching edge cases" > IndexedDB: Fix cursor prefetching edge cases > > Cursor prefetch caches must be discarded when other > requests are made to ensure proper request sequencing. > Two edge cases were handled improperly if new records > was written just ahead of the cursor. > > * A reset occurring before the prefetch results were > received would be ignored; since the newly records > weren't in the prefetch data, the cursor wouldn't see > them. > > * A reset occurring after the results are received > would back up the cursor to before the new records, > even though the prefetch itself is a "continue" > and advanced past them already. > > The fix is to reset the cache on receipt if necessary, > and to ensure the reset state accounts for the implicit > advance. > > BUG=331570 > > Review URL: https://codereview.chromium.org/124323002 TBR=jsbell@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243359

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -82 lines) Patch
M trunk/src/content/browser/indexed_db/indexed_db_cursor.cc View 4 chunks +4 lines, -12 lines 0 comments Download
M trunk/src/content/child/indexed_db/indexed_db_dispatcher.h View 1 chunk +3 lines, -4 lines 0 comments Download
M trunk/src/content/child/indexed_db/webidbcursor_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M trunk/src/content/child/indexed_db/webidbcursor_impl.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M trunk/src/content/child/indexed_db/webidbcursor_impl_unittest.cc View 4 chunks +1 line, -57 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ccameron
6 years, 11 months ago (2014-01-07 19:33:42 UTC) #1
ccameron
Committed patchset #1 manually as r243359.
6 years, 11 months ago (2014-01-07 19:34:06 UTC) #2
Lei Zhang
The reason for the revert is below. Valgrind detected it as well, FWIW. ERROR: LeakSanitizer: ...
6 years, 11 months ago (2014-01-07 22:01:22 UTC) #3
jsbell
6 years, 11 months ago (2014-01-07 22:06:53 UTC) #4
Message was sent while issue was closed.
Yep, already fixed (was a test-only leak) and resubmitted to the CQ.

Thanks folks!

Powered by Google App Engine
This is Rietveld 408576698