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); |
} |