summaryrefslogtreecommitdiffstats
path: root/content/browser/indexed_db
diff options
context:
space:
mode:
authorcmumford <cmumford@chromium.org>2015-02-20 20:22:15 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-21 04:22:49 +0000
commit4c93e0fb4f65b1bceb9653e421a7687ffa5a4004 (patch)
tree98467dc79804dd9d0642fad8595e06468561a121 /content/browser/indexed_db
parentfa205736db62477624df24a72dc63f8b0e0b4b95 (diff)
downloadchromium_src-4c93e0fb4f65b1bceb9653e421a7687ffa5a4004.zip
chromium_src-4c93e0fb4f65b1bceb9653e421a7687ffa5a4004.tar.gz
chromium_src-4c93e0fb4f65b1bceb9653e421a7687ffa5a4004.tar.bz2
IndexedDB: Disable leveldb log reuse on Chrome OS only.
Once the leveldb log reuse was enabled database corruption rates increased, but only appreciably on Chrome OS. All other platforms were effectively flat. Because of the significant performance gains to this original change we are disabling log reuse on Chrome OS only. BUG=460568 Review URL: https://codereview.chromium.org/947573002 Cr-Commit-Position: refs/heads/master@{#317499}
Diffstat (limited to 'content/browser/indexed_db')
-rw-r--r--content/browser/indexed_db/leveldb/leveldb_database.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/indexed_db/leveldb/leveldb_database.cc b/content/browser/indexed_db/leveldb/leveldb_database.cc
index aab1255..c78ec0d 100644
--- a/content/browser/indexed_db/leveldb/leveldb_database.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_database.cc
@@ -103,7 +103,12 @@ static leveldb::Status OpenDB(
options.create_if_missing = true;
options.paranoid_checks = true;
options.filter_policy = filter_policy->get();
+#if defined(OS_CHROMEOS)
+ // Disabled on CrOS until crbug.com/460568 is fixed.
+ 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: