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

Unified Diff: sql/init_status.h

Issue 2225333003: Recreate the WebData database on a catastrophic SQL error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Recover DB and show profile error dialog Created 4 years, 4 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
« sql/connection.cc ('K') | « sql/connection.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/init_status.h
diff --git a/sql/init_status.h b/sql/init_status.h
index f5e29e6d93fc867bd04c1d81da0748bbcee34e6d..5f47dafe9b472cc4c0caaaff1bef5e8a36584592 100644
--- a/sql/init_status.h
+++ b/sql/init_status.h
@@ -11,6 +11,11 @@ namespace sql {
enum InitStatus {
INIT_OK,
+ // A catastrophic error occurred while opening the database, but the database
+ // was recovered and initialized successfully but data loss might have
+ // happened.
+ INIT_OK_WITH_DATA_LOSS,
+
Scott Hess - ex-Googler 2016/08/18 21:51:38 Any reason this isn't at the end of the list? Als
afakhry 2016/08/19 18:01:57 No, no reason. I put up there to be close to INIT_
// Some error, usually I/O related opening the file.
INIT_FAILURE,
« sql/connection.cc ('K') | « sql/connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698