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

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

Issue 2243363002: IndexedDB: Limit the size of a leveldb write buffer to minimize disk space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 572f36572b75f405b92936af59526327cfebeaff..5801b68f94c93f2e6e3244a8e49444444f47d0a6 100644
--- a/content/browser/indexed_db/leveldb/leveldb_database.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_database.cc
@@ -126,6 +126,7 @@ static leveldb::Status OpenDB(
options.filter_policy = filter_policy->get();
options.reuse_logs = leveldb_env::kDefaultLogReuseOptionValue;
options.compression = leveldb::kSnappyCompression;
+ options.write_buffer_size = leveldb_env::WriteBufferSize(path);
michaeln 2016/08/16 19:41:22 or maybe only expose the xxxForDiskSize() function
// For info about the troubles we've run into with this parameter, see:
// https://code.google.com/p/chromium/issues/detail?id=227313#c11
« no previous file with comments | « no previous file | third_party/leveldatabase/env_chromium.h » ('j') | third_party/leveldatabase/env_chromium_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698