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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_database.cc

Issue 1133483006: IndexedDB: Disabling manifest (log) reuse on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
Patch Set: Created 5 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/leveldb/leveldb_database.cc
diff --git a/content/browser/indexed_db/leveldb/leveldb_database.cc b/content/browser/indexed_db/leveldb/leveldb_database.cc
index aab1255d145a6e46d3f64e9a602365c9156d5d15..1bee28fc14fc50a1ce7e62fa8c8222635462651e 100644
--- a/content/browser/indexed_db/leveldb/leveldb_database.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_database.cc
@@ -103,7 +103,14 @@ static leveldb::Status OpenDB(
options.create_if_missing = true;
options.paranoid_checks = true;
options.filter_policy = filter_policy->get();
+#if defined(OS_CHROMEOS)
+ // Reusing logs on Chrome OS resulted in an unacceptably high leveldb
+ // corruption rate (at least for Indexed DB). More info at
+ // https://crbug.com/460568
+ options.reuse_logs = false;
+#else
options.reuse_logs = true;
+#endif
options.compression = leveldb::kSnappyCompression;
// For info about the troubles we've run into with this parameter, see:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698