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

Issue 9592026: Create meta table atomically. (Closed)

Created:
8 years, 9 months ago by Scott Hess - ex-Googler
Modified:
8 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, brettw-cc_chromium.org, wtc, Randy Smith (Not in Mondays), darin-cc_chromium.org, rkn
Visibility:
Public.

Description

Create meta table atomically. http://crbug.com/111376 happened because a crash between creation and population of the meta table could leave a meta table returning 0 for the version numbers, even though no client ever stored 0 for the versions. This makes creation and population atomic. Additionally, version numbers are restricted to positive values, to prevent this case from being masked in the future. BUG=116306 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125557

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 lines) Patch
M chrome/browser/history/download_database.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/history/download_database.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/history/history_database.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/history/history_database.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/net/sqlite_persistent_cookie_store_unittest.cc View 1 chunk +2 lines, -3 lines 2 comments Download
M sql/meta_table.h View 1 chunk +2 lines, -1 line 0 comments Download
M sql/meta_table.cc View 5 chunks +15 lines, -1 line 1 comment Download

Messages

Total messages: 9 (0 generated)
Scott Hess - ex-Googler
Erik, for making sure this matches findings WRT the Cookies problem, and that my change ...
8 years, 9 months ago (2012-03-06 22:18:33 UTC) #1
benjhayden
LGTM Thanks! Longer term, should HistoryDatabase have-a DownloadDatabase instead of the current is-a relationship? Or ...
8 years, 9 months ago (2012-03-06 22:34:34 UTC) #2
brettw
Rubber stamp LGTM, got too many reviews to care.
8 years, 9 months ago (2012-03-06 23:23:33 UTC) #3
erikwright (departed)
I'm concerned about how the transaction here will interact with a transaction that the client ...
8 years, 9 months ago (2012-03-07 14:57:34 UTC) #4
Scott Hess - ex-Googler
On 2012/03/07 14:57:34, erikwright wrote: > I'm concerned about how the transaction here will interact ...
8 years, 9 months ago (2012-03-07 15:24:27 UTC) #5
erikwright (departed)
On 2012/03/07 15:24:27, shess wrote: > On 2012/03/07 14:57:34, erikwright wrote: > > I'm concerned ...
8 years, 9 months ago (2012-03-07 15:42:00 UTC) #6
Scott Hess - ex-Googler
On 2012/03/07 15:42:00, erikwright wrote: > On 2012/03/07 15:24:27, shess wrote: > > On 2012/03/07 ...
8 years, 9 months ago (2012-03-08 00:01:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/9592026/1
8 years, 9 months ago (2012-03-08 00:03:20 UTC) #8
commit-bot: I haz the power
8 years, 9 months ago (2012-03-08 04:53:51 UTC) #9
Change committed as 125557

Powered by Google App Engine
This is Rietveld 408576698