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

Issue 10669033: Close ArchivedDatabase connection after transaction rollback. (Closed)

Created:
8 years, 6 months ago by John Knottenbelt
Modified:
8 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews, brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Close ArchivedDatabase connection after transaction rollback. ArchivedDatabase::Init attempts to initialize its database tables inside of a transaction. If the initialization fails, the transaction object's destructor attempts to perform a rollback which fails because the database connection has been closed. Ensure that the transaction object is always destructed before database closure by moving the table initialization into a separate method. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145124

Patch Set 1 #

Total comments: 1

Patch Set 2 : DoInitTransaction() -> InitTables. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -11 lines) Patch
M chrome/browser/history/archived_database.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/history/archived_database.cc View 1 1 chunk +13 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
John Knottenbelt
8 years, 6 months ago (2012-06-26 14:14:27 UTC) #1
brettw
Just to clarify, this doesn't actually fix any bug right? Maybe the description can be ...
8 years, 5 months ago (2012-06-27 17:12:22 UTC) #2
John Knottenbelt
I was seeing a DCHECK failure in Chrome on Android running the html5tests suite downstream ...
8 years, 5 months ago (2012-06-28 07:45:28 UTC) #3
brettw
lgtm Okay, your description makes sense, thanks.
8 years, 5 months ago (2012-06-28 19:37:34 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jknotten@chromium.org/10669033/5001
8 years, 5 months ago (2012-06-29 05:35:30 UTC) #5
commit-bot: I haz the power
Try job failure for 10669033-5001 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 5 months ago (2012-06-29 06:29:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jknotten@chromium.org/10669033/5001
8 years, 5 months ago (2012-07-02 06:51:36 UTC) #7
commit-bot: I haz the power
8 years, 5 months ago (2012-07-02 08:25:34 UTC) #8
Change committed as 145124

Powered by Google App Engine
This is Rietveld 408576698