aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-04-24 08:39:39 -0700
committerGavin Andresen <gavinandresen@gmail.com>2013-04-24 08:39:39 -0700
commitfe15aa335c223a37a1196d5f509fbe8059b733bb (patch)
tree0cfb58ed258fcc45dd05b658618fb38c2f26d328
parentaf10e3f6ac26a1ece7950f5263864c94049bf89d (diff)
parent2233fc531850892c7becf82d6906f3706090f8d7 (diff)
Merge pull request #2557 from sipa/leveldb64
Reduce number of open LevelDB files to 64
-rw-r--r--src/leveldb.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leveldb.cpp b/src/leveldb.cpp
index b41764f51f..e66f8514a7 100644
--- a/src/leveldb.cpp
+++ b/src/leveldb.cpp
@@ -30,6 +30,7 @@ static leveldb::Options GetOptions(size_t nCacheSize) {
options.write_buffer_size = nCacheSize / 4; // up to two write buffers may be held in memory simultaneously
options.filter_policy = leveldb::NewBloomFilterPolicy(10);
options.compression = leveldb::kNoCompression;
+ options.max_open_files = 64;
return options;
}