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

Unified Diff: sql/recovery.cc

Issue 2274883003: [sql] Track SQLite error codes from sql::Recovery ATTACH. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | sql/recovery_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/recovery.cc
diff --git a/sql/recovery.cc b/sql/recovery.cc
index d7bb74f2d306952065701eb4615e81cda2ad9d2b..0b4c3fe6a3ba9369832c462cf0887ea32dfaa23d 100644
--- a/sql/recovery.cc
+++ b/sql/recovery.cc
@@ -240,6 +240,8 @@ bool Recovery::Init(const base::FilePath& db_path) {
if (!recover_db_.AttachDatabase(db_path, "corrupt")) {
RecordRecoveryEvent(RECOVERY_FAILED_ATTACH);
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Sqlite.RecoveryAttachError",
+ recover_db_.GetErrorCode());
return false;
}
« no previous file with comments | « no previous file | sql/recovery_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698