summaryrefslogtreecommitdiff
path: root/options/options_helper.cc
diff options
context:
space:
mode:
authorLeonidas Galanis <lgalanis@fb.com>2017-05-03 20:46:17 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2017-05-03 21:13:14 -0700
commite7ae4a3a025f95e6506c0d53a797b1d31a36948f (patch)
treed2ef3da1aef2953890041836269cde7c4c549d20 /options/options_helper.cc
parent60847a3b080a9ce61404501732c90ed33a0ab1b8 (diff)
Max open files mutable
Summary: Makes max_open_files db option dynamically set-able by SetDBOptions. During the call of SetDBOptions we call SetCapacity on the table cache, which is a LRUCache. Closes https://github.com/facebook/rocksdb/pull/2185 Differential Revision: D4979189 Pulled By: yiwu-arbug fbshipit-source-id: ca7e8dc5e3619c79434f579be4847c0f7e56afda
Diffstat (limited to 'options/options_helper.cc')
-rw-r--r--options/options_helper.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/options_helper.cc b/options/options_helper.cc
index 68d19cf77..01066c6e9 100644
--- a/options/options_helper.cc
+++ b/options/options_helper.cc
@@ -41,7 +41,7 @@ DBOptions BuildDBOptions(const ImmutableDBOptions& immutable_db_options,
options.sst_file_manager = immutable_db_options.sst_file_manager;
options.info_log = immutable_db_options.info_log;
options.info_log_level = immutable_db_options.info_log_level;
- options.max_open_files = immutable_db_options.max_open_files;
+ options.max_open_files = mutable_db_options.max_open_files;
options.max_file_opening_threads =
immutable_db_options.max_file_opening_threads;
options.max_total_wal_size = mutable_db_options.max_total_wal_size;