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

Unified Diff: sql/recovery.h

Issue 2710823005: [sql] RecoverDatabase() deletes SQLITE_NOTADB databases. (Closed)
Patch Set: Comment on enum required to match histogram enumeration. Created 3 years, 10 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 | « no previous file | sql/recovery.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/recovery.h
diff --git a/sql/recovery.h b/sql/recovery.h
index a829e77057f8f71083b42e81575ec4c169f40758..e77a5d5f9fbc5cacfbe452cdb9df5f479dbd2e7f 100644
--- a/sql/recovery.h
+++ b/sql/recovery.h
@@ -164,6 +164,8 @@ class SQL_EXPORT Recovery {
// table may contain duplication. If this is not acceptable, the client
// should use the manual process as described in the example at the top of the
// file, cleaning up data at the appropriate points.
+ //
+ // In case of SQLITE_NOTADB, the database is deemed unrecoverable and deleted.
static void RecoverDatabase(Connection* db, const base::FilePath& db_path);
// Returns true for SQLite errors which RecoverDatabase() can plausibly fix.
« no previous file with comments | « no previous file | sql/recovery.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698