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

Unified Diff: tools/metrics/histograms/histograms.xml

Side-by-side diff isn't available for this file because of its large size.
Issue 1832173002: [sql] Database recovery system for Shortcuts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: grammar Created 4 years, 5 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:
Download patch
« no previous file with comments | « sql/recovery_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 4efad5d71eff4c442afd7346449956087716a504..9b1c6f9096f39e4c9e4ea57b0d49f534ba9457de 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -54081,8 +54081,9 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
<owner>shess@chromium.org</owner>
<summary>
Records specific failure and success cases in sql::Recovery implementation,
- to determine which cases (if any) might be worth writing additional
- automated recovery code for, versus which should lead to clearing databases.
+ to determine which cases warrant further development. This histogram tracks
+ detected errors, some of which may cause multiple results. See recovery.cc
+ for details.
</summary>
</histogram>
@@ -89761,6 +89762,30 @@ To add a new entry, add it with any value and run test to compute valid value.
<int value="19" label="RECOVERY_FAILED_META_NO_VERSION">
GetMetaVersionNumber() found no version row in meta table.
</int>
+ <int value="20" label="RECOVERY_SUCCESS_AUTORECOVERDB">
+ sql::Recovery::RecoverDatabaseOrRaze() completed successfully.
+ </int>
+ <int value="21" label="RECOVERY_FAILED_AUTORECOVERDB_BEGIN">
+ Autorecover could not setup the database for recovery attempt.
+ </int>
+ <int value="22" label="RECOVERY_FAILED_AUTORECOVERDB_SCHEMASELECT">
+ Autorecover could not read corrupt db schema.
+ </int>
+ <int value="23" label="RECOVERY_FAILED_AUTORECOVERDB_SCHEMACREATE">
+ Autorecover could not create new db schema.
+ </int>
+ <int value="24" label="RECOVERY_FAILED_AUTORECOVERDB_NAMESELECT">
+ Autorecover could not read table names from corrupt db.
+ </int>
+ <int value="25" label="RECOVERY_FAILED_AUTORECOVERDB_TABLE">
+ Autorecover failed when recovering a table.
+ </int>
+ <int value="26" label="RECOVERY_FAILED_AUTORECOVERDB_SEQUENCE">
+ Autorecover failed when recovering sequence table.
+ </int>
+ <int value="27" label="RECOVERY_FAILED_AUTORECOVERDB_AUX">
+ Autorecover failed when recovering triggers, views, or virtual tables.
+ </int>
</enum>
<enum name="SqliteStatsEnum" type="int">
« no previous file with comments | « sql/recovery_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698