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

Issue 303073002: Change instances of s.IsCorruption() to leveldb_env::IsCorruption(s) (Closed)

Created:
6 years, 6 months ago by dgrogan
Modified:
6 years, 6 months ago
Reviewers:
jsbell, cmumford
CC:
chromium-reviews, jam, alecflett, ericu+idb_chromium.org, darin-cc_chromium.org, cmumford, jsbell+idb_chromium.org
Visibility:
Public.

Description

Change instances of s.IsCorruption() to leveldb_env::IsCorruption(s). LevelDB sometimes returns Status::InvalidArgument() when it encounters corruption. But LevelDB doesn't provide a Status::IsInvalidArgument() accessor so we need to indirectly detect it. This patch revealed that IndexedDBDatabaseOperationTest.CreatePutDelete had been passing by accident. In order to make it continue to pass, this patch adds a method to IndexedDBFakeBackingStore. BUG=322707 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273757 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274066

Patch Set 1 #

Patch Set 2 : fix memory leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -17 lines) Patch
M content/browser/indexed_db/indexed_db_database.cc View 16 chunks +16 lines, -15 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_unittest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_factory.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_fake_backing_store.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_fake_backing_store.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dgrogan
Chris/Josh, could one of you review this?
6 years, 6 months ago (2014-05-29 02:59:59 UTC) #1
cmumford
lgtm David: What do you think about modifying LevelDB so that the Status object returned ...
6 years, 6 months ago (2014-05-29 16:58:03 UTC) #2
jsbell
lgtm as well. Thanks for catching this! As discussed offline, should we see about a ...
6 years, 6 months ago (2014-05-29 18:40:59 UTC) #3
dgrogan
The CQ bit was checked by dgrogan@chromium.org
6 years, 6 months ago (2014-05-29 23:09:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/303073002/1
6 years, 6 months ago (2014-05-29 23:12:03 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-05-30 03:49:23 UTC) #6
commit-bot: I haz the power
Change committed as 273757
6 years, 6 months ago (2014-05-30 08:05:42 UTC) #7
dgrogan
Yeah, I will send Sanjay a patch that changes a few InvalidArgument statuses to Corruption ...
6 years, 6 months ago (2014-05-30 17:51:58 UTC) #8
dgrogan
On 2014/05/29 18:40:59, jsbell wrote: > lgtm as well. Thanks for catching this! > > ...
6 years, 6 months ago (2014-05-30 22:20:34 UTC) #9
dgrogan
r? cq?
6 years, 6 months ago (2014-05-30 22:21:16 UTC) #10
jsbell
lgtm
6 years, 6 months ago (2014-05-31 00:00:34 UTC) #11
jsbell
The CQ bit was checked by jsbell@chromium.org
6 years, 6 months ago (2014-05-31 00:00:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/303073002/20001
6 years, 6 months ago (2014-05-31 00:06:24 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-05-31 22:17:57 UTC) #14
Message was sent while issue was closed.
Change committed as 274066

Powered by Google App Engine
This is Rietveld 408576698