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

Unified Diff: components/leveldb_proto/leveldb_database.cc

Issue 1025433003: leveldb: Reuse manifest (AKA logs) during open. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using leveldb_env::kDefaultLogReuseOptionValue for IDB Created 5 years, 9 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: components/leveldb_proto/leveldb_database.cc
diff --git a/components/leveldb_proto/leveldb_database.cc b/components/leveldb_proto/leveldb_database.cc
index 45f220e9576c565e6dfcbbdec81d34def93849c5..b3e1a05a97afb440771b92c52eb58fc65527a293 100644
--- a/components/leveldb_proto/leveldb_database.cc
+++ b/components/leveldb_proto/leveldb_database.cc
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_split.h"
#include "base/threading/thread_checker.h"
+#include "third_party/leveldatabase/env_chromium.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
#include "third_party/leveldatabase/src/include/leveldb/iterator.h"
#include "third_party/leveldatabase/src/include/leveldb/options.h"
@@ -55,6 +56,7 @@ bool LevelDB::Init(const base::FilePath& database_dir) {
leveldb::Options options;
options.create_if_missing = true;
options.max_open_files = 0; // Use minimum.
+ options.reuse_logs = leveldb_env::kDefaultLogReuseOptionValue;
return InitWithOptions(database_dir, options);
}

Powered by Google App Engine
This is Rietveld 408576698