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

Issue 20022006: [sql] Use recover virtual table in sql::Recovery. (Closed)

Created:
7 years, 5 months ago by Scott Hess - ex-Googler
Modified:
7 years, 4 months ago
CC:
chromium-reviews, vandebo (ex-Chrome)
Visibility:
Public.

Description

[sql] Use recover virtual table in sql::Recovery. Load the recover virtual table as part of sql::Recovery::Begin(), and implement basic unit tests that it correctly recovers valid and corrupt tables. BUG=109482 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215764

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add some helpers, clean some comments. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -6 lines) Patch
M sql/connection_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M sql/recovery.cc View 1 chunk +18 lines, -0 lines 2 comments Download
M sql/recovery_unittest.cc View 1 3 chunks +282 lines, -2 lines 5 comments Download
M sql/sql.gyp View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 17 (0 generated)
Scott Hess - ex-Googler
https://codereview.chromium.org/20022006/diff/1/sql/connection_unittest.cc File sql/connection_unittest.cc (right): https://codereview.chromium.org/20022006/diff/1/sql/connection_unittest.cc#newcode428 sql/connection_unittest.cc:428: file_util::ScopedFILE file(file_util::OpenFile(db_path(), "rb+")); I had a case in SQLRecoveryTest ...
7 years, 5 months ago (2013-07-23 22:32:04 UTC) #1
Scott Hess - ex-Googler
ping? https://chromiumcodereview.appspot.com/20022006/diff/6001/sql/sql.gyp File sql/sql.gyp (right): https://chromiumcodereview.appspot.com/20022006/diff/6001/sql/sql.gyp#newcode82 sql/sql.gyp:82: '../third_party/sqlite/sqlite.gyp:sqlite', So that the test code can see ...
7 years, 5 months ago (2013-07-26 04:51:43 UTC) #2
Scott Hess - ex-Googler
Ah, and the "documentation" on using the recover virtual table is in third_party/sqlite/src/src/recover.c header comment.
7 years, 5 months ago (2013-07-26 14:32:52 UTC) #3
erikwright (departed)
https://codereview.chromium.org/20022006/diff/6001/sql/recovery_unittest.cc File sql/recovery_unittest.cc (right): https://codereview.chromium.org/20022006/diff/6001/sql/recovery_unittest.cc#newcode238 sql/recovery_unittest.cc:238: db->reset_error_callback(); Is this something most clients would need to ...
7 years, 5 months ago (2013-07-26 16:05:33 UTC) #4
Scott Hess - ex-Googler
https://codereview.chromium.org/20022006/diff/6001/sql/recovery_unittest.cc File sql/recovery_unittest.cc (right): https://codereview.chromium.org/20022006/diff/6001/sql/recovery_unittest.cc#newcode238 sql/recovery_unittest.cc:238: db->reset_error_callback(); On 2013/07/26 16:05:33, erikwright wrote: > Is this ...
7 years, 5 months ago (2013-07-26 17:15:58 UTC) #5
erikwright (departed)
LGTM. https://codereview.chromium.org/20022006/diff/6001/sql/recovery.cc File sql/recovery.cc (right): https://codereview.chromium.org/20022006/diff/6001/sql/recovery.cc#newcode85 sql/recovery.cc:85: int rc = recoverVtableInit(recover_db_.db_); Any compelling reason for ...
7 years, 5 months ago (2013-07-26 17:56:57 UTC) #6
Scott Hess - ex-Googler
Thanks! I'm OOT next week, so I won't be able to get anything into production ...
7 years, 5 months ago (2013-07-26 18:04:08 UTC) #7
erikwright (departed)
Interesting. WebDB is a direct line into SQLite? I'd be shocked if that's the only ...
7 years, 5 months ago (2013-07-26 18:11:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/20022006/6001
7 years, 5 months ago (2013-07-26 18:37:01 UTC) #9
Scott Hess - ex-Googler
On 2013/07/26 18:11:58, erikwright wrote: > Interesting. WebDB is a direct line into SQLite? If ...
7 years, 5 months ago (2013-07-26 19:27:28 UTC) #10
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=63828
7 years, 4 months ago (2013-07-27 23:49:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/20022006/6001
7 years, 4 months ago (2013-07-28 01:04:21 UTC) #12
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=63990
7 years, 4 months ago (2013-07-28 03:04:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/20022006/6001
7 years, 4 months ago (2013-08-05 20:42:51 UTC) #14
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=156317
7 years, 4 months ago (2013-08-05 21:41:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/20022006/6001
7 years, 4 months ago (2013-08-05 21:46:35 UTC) #16
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 02:37:42 UTC) #17
Message was sent while issue was closed.
Change committed as 215764

Powered by Google App Engine
This is Rietveld 408576698