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

Unified Diff: third_party/sqlite/src/src/main.c

Issue 9144001: The complete work-in-progress SQLite recover virtual table. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sigh, forgot to specify baseline. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/sqlmake ('k') | third_party/sqlite/src/src/pager.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/src/main.c
diff --git a/third_party/sqlite/src/src/main.c b/third_party/sqlite/src/src/main.c
index 4aaa61899cbd426a0e0342872aff037162fa9c7a..efec2f915d301d177922a074b1147879c2564c2f 100644
--- a/third_party/sqlite/src/src/main.c
+++ b/third_party/sqlite/src/src/main.c
@@ -2008,6 +2008,12 @@ static int openDatabase(
}
#endif
+ /* TODO(shess): #ifdef magic? */
+ if( !db->mallocFailed && rc==SQLITE_OK){
+ extern int recoverVtableInit(sqlite3 *db);
+ rc = recoverVtableInit(db);
+ }
+
sqlite3Error(db, rc, 0);
/* -DSQLITE_DEFAULT_LOCKING_MODE=1 makes EXCLUSIVE the default locking
« no previous file with comments | « third_party/sqlite/src/sqlmake ('k') | third_party/sqlite/src/src/pager.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698