summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Taaki <genjix@riseup.net>2013-06-09 15:33:12 (GMT)
committer Amir Taaki <genjix@riseup.net>2013-06-09 15:33:55 (GMT)
commit1339078ef38b415dcce2881b97e93670ba3f3ab8 (patch)
treebd58dff00b068a79bf8c33866f80df7329e03b56
parent64152aeb22f60e3598b68811834e7e9c0d9b15bd (diff)
raise low value for max_open_files in LevelDB.v1.0-r10
-rw-r--r--src/blockchain/leveldb/leveldb_blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain/leveldb/leveldb_blockchain.cpp b/src/blockchain/leveldb/leveldb_blockchain.cpp
index 8ccc604..f252c7e 100644
--- a/src/blockchain/leveldb/leveldb_blockchain.cpp
+++ b/src/blockchain/leveldb/leveldb_blockchain.cpp
@@ -133,7 +133,7 @@ bool leveldb_blockchain::initialize(const std::string& prefix)
open_options_.write_buffer_size = cache_size / 4;
open_options_.filter_policy = leveldb::NewBloomFilterPolicy(10);
open_options_.compression = leveldb::kNoCompression;
- open_options_.max_open_files = 64;
+ open_options_.max_open_files = 150;
open_options_.create_if_missing = true;
// The blocks database options needs its depth comparator too.
leveldb::Options blocks_open_options = open_options_;