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

Issue 16409006: Don't delete leveldb directory if disk was full. (Closed)

Created:
7 years, 6 months ago by dgrogan
Modified:
7 years, 6 months ago
Reviewers:
alecflett, jsbell
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Don't delete leveldb directory if disk was full. Also, equally as important, don't count a full disk as a corruption. This patch's functionality was added to IDB in blink, but after the IDB team forked the blink code to port to chromium. See http://src.chromium.org/viewvc/blink?view=rev&rev=150406 for the original blink patch. BUG=239882 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204963

Patch Set 1 #

Patch Set 2 : make it compile #

Patch Set 3 : ToT #

Patch Set 4 : Don't assume disk is full if reading it failed #

Total comments: 4

Patch Set 5 : respond to comments; slightly alter behavior #

Total comments: 2

Patch Set 6 : move to else if block #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -12 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 3 4 5 3 chunks +14 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_database.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_database.cc View 1 2 3 5 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
dgrogan
Josh, could you review this? You reviewed the blink version ~month ago.
7 years, 6 months ago (2013-06-07 17:09:01 UTC) #1
jsbell
Is the patch missing something, or am I? https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode502 content/browser/indexed_db/indexed_db_backing_store.cc:502: bool ...
7 years, 6 months ago (2013-06-07 17:48:41 UTC) #2
dgrogan
https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode502 content/browser/indexed_db/indexed_db_backing_store.cc:502: bool is_disk_full = false; On 2013/06/07 17:48:41, jsbell wrote: ...
7 years, 6 months ago (2013-06-07 18:23:58 UTC) #3
jsbell
lgtm with one nit https://codereview.chromium.org/16409006/diff/24001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/16409006/diff/24001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode541 content/browser/indexed_db/indexed_db_backing_store.cc:541: if (is_disk_full) { This can ...
7 years, 6 months ago (2013-06-07 18:32:19 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/16409006/28001
7 years, 6 months ago (2013-06-07 18:39:35 UTC) #5
dgrogan
https://codereview.chromium.org/16409006/diff/24001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/16409006/diff/24001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode541 content/browser/indexed_db/indexed_db_backing_store.cc:541: if (is_disk_full) { On 2013/06/07 18:32:19, jsbell wrote: > ...
7 years, 6 months ago (2013-06-07 18:39:44 UTC) #6
commit-bot: I haz the power
7 years, 6 months ago (2013-06-07 22:32:50 UTC) #7
Message was sent while issue was closed.
Change committed as 204963

Powered by Google App Engine
This is Rietveld 408576698