aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/db/db_impl.cc
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2017-06-09 19:24:30 -0700
committerPieter Wuille <[email protected]>2017-06-09 19:24:30 -0700
commite4030ab4f47065c362901109c74ca8e791c2de0a (patch)
treec1678f5a72d3888ad5e4621073bbe4fa698883b5 /src/leveldb/db/db_impl.cc
parentMerge #10201: pass Consensus::Params& to functions in validation.cpp and make... (diff)
parentSquashed 'src/leveldb/' changes from a31c8aa40..196962ff0 (diff)
downloaddiscoin-e4030ab4f47065c362901109c74ca8e791c2de0a.tar.xz
discoin-e4030ab4f47065c362901109c74ca8e791c2de0a.zip
Update to LevelDB 1.20
Diffstat (limited to 'src/leveldb/db/db_impl.cc')
-rw-r--r--src/leveldb/db/db_impl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leveldb/db/db_impl.cc b/src/leveldb/db/db_impl.cc
index 60f4e66e5..f43ad7679 100644
--- a/src/leveldb/db/db_impl.cc
+++ b/src/leveldb/db/db_impl.cc
@@ -96,6 +96,7 @@ Options SanitizeOptions(const std::string& dbname,
result.filter_policy = (src.filter_policy != NULL) ? ipolicy : NULL;
ClipToRange(&result.max_open_files, 64 + kNumNonTableCacheFiles, 50000);
ClipToRange(&result.write_buffer_size, 64<<10, 1<<30);
+ ClipToRange(&result.max_file_size, 1<<20, 1<<30);
ClipToRange(&result.block_size, 1<<10, 4<<20);
if (result.info_log == NULL) {
// Open a log file in the same directory as the db