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

Issue 26045002: Don't reset the database when there was an I/O error. (Closed)

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

Description

Don't reset the database when there was an I/O error. Unlike corruption errors, I/O errors have the potential to be ephemeral. We shouldn't aggressively delete the database in those cases. Instead, punt that decision up to the web app. Also, can remove the full disk catch-all. That was intended to catch full disks masquerading as other I/O errors. BUG=239882 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=227444

Patch Set 1 #

Patch Set 2 : delete the database even if the disk is full when there there is corruption #

Patch Set 3 : mark enum as deprecated #

Total comments: 8

Patch Set 4 : Change to IsIOError #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -44 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 3 2 chunks +2 lines, -42 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/leveldatabase/env_chromium.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dgrogan
Josh or Alec, could you review this?
7 years, 2 months ago (2013-10-04 21:47:04 UTC) #1
jsbell
lgtm with nits https://codereview.chromium.org/26045002/diff/5001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (left): https://codereview.chromium.org/26045002/diff/5001/content/browser/indexed_db/indexed_db_backing_store.cc#oldcode559 content/browser/indexed_db/indexed_db_backing_store.cc:559: } else if (*is_disk_full) { Just ...
7 years, 2 months ago (2013-10-04 23:32:33 UTC) #2
dgrogan
https://codereview.chromium.org/26045002/diff/5001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (left): https://codereview.chromium.org/26045002/diff/5001/content/browser/indexed_db/indexed_db_backing_store.cc#oldcode559 content/browser/indexed_db/indexed_db_backing_store.cc:559: } else if (*is_disk_full) { On 2013/10/04 23:32:33, jsbell ...
7 years, 2 months ago (2013-10-05 01:06:16 UTC) #3
dgrogan
I'm not going to submit until I've heard back from you that we're on the ...
7 years, 2 months ago (2013-10-05 01:11:18 UTC) #4
jsbell
lgtm
7 years, 2 months ago (2013-10-07 18:52:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/26045002/11001
7 years, 2 months ago (2013-10-07 18:52:52 UTC) #6
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-07 19:05:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/26045002/11001
7 years, 2 months ago (2013-10-08 00:13:43 UTC) #8
commit-bot: I haz the power
7 years, 2 months ago (2013-10-08 02:52:35 UTC) #9
Message was sent while issue was closed.
Change committed as 227444

Powered by Google App Engine
This is Rietveld 408576698