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

Issue 11369126: Make sql::Connection::Raze() more robust against corruptions. (Closed)

Created:
8 years, 1 month ago by Scott Hess - ex-Googler
Modified:
8 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, wtc, browser-components-watch_chromium.org, darin-cc_chromium.org, rkn, erikwright (departed)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Make sql::Connection::Raze() more robust against corruptions. Corruptions resulting from the first page showing a different database size than the filesystem shows cause very basic functions to fail. This does fewer queries against the corrupt database, and also enables a magic pragma to let it make better progress. BUG=159490 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167019

Patch Set 1 #

Patch Set 2 : Remove the auto_vacuum stuff #

Patch Set 3 : Fix for android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -21 lines) Patch
M sql/connection.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M sql/connection.cc View 1 2 4 chunks +49 lines, -20 lines 0 comments Download
M sql/connection_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Scott Hess - ex-Googler
I'm so sad I'm only getting this up just before leaving for the day like ...
8 years, 1 month ago (2012-11-08 01:19:26 UTC) #1
Scott Hess - ex-Googler
Way to test things, Scott! Unfortunately, while the gist of this is right, getting the ...
8 years, 1 month ago (2012-11-09 02:00:26 UTC) #2
Scott Hess - ex-Googler
On 2012/11/09 02:00:26, shess wrote: > Way to test things, Scott! > > Unfortunately, while ...
8 years, 1 month ago (2012-11-09 02:13:21 UTC) #3
erikwright (departed)
LGTM.
8 years, 1 month ago (2012-11-09 03:44:03 UTC) #4
Scott Hess - ex-Googler
Yaron, you made the Android changes to sqlite.gyp, if this passes I'm just going to ...
8 years, 1 month ago (2012-11-09 21:16:07 UTC) #5
Yaron
Thanks for looping me in. Looks fine.
8 years, 1 month ago (2012-11-09 21:26:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/11369126/3012
8 years, 1 month ago (2012-11-09 21:48:45 UTC) #7
commit-bot: I haz the power
8 years, 1 month ago (2012-11-10 00:38:28 UTC) #8
Change committed as 167019

Powered by Google App Engine
This is Rietveld 408576698