summaryrefslogtreecommitdiff
path: root/table/sst_file_writer.cc
diff options
context:
space:
mode:
authorZhongyi Xie <xiez@fb.com>2018-05-21 14:33:55 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-05-21 14:43:11 -0700
commitc3ebc75843db131a6db4c272aff712d797b9aaae (patch)
tree50d32a8a826267c3fd2779167f4c98b79047b64f /table/sst_file_writer.cc
parent263ef52b656b0e1dc94feb3eff76043bbe81d7f6 (diff)
Move prefix_extractor to MutableCFOptions
Summary: Currently it is not possible to change bloom filter config without restart the db, which is causing a lot of operational complexity for users. This PR aims to make it possible to dynamically change bloom filter config. Closes https://github.com/facebook/rocksdb/pull/3601 Differential Revision: D7253114 Pulled By: miasantreble fbshipit-source-id: f22595437d3e0b86c95918c484502de2ceca120c
Diffstat (limited to 'table/sst_file_writer.cc')
-rw-r--r--table/sst_file_writer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/table/sst_file_writer.cc b/table/sst_file_writer.cc
index 2ed387446..d1134d36e 100644
--- a/table/sst_file_writer.cc
+++ b/table/sst_file_writer.cc
@@ -189,10 +189,10 @@ Status SstFileWriter::Open(const std::string& file_path) {
}
TableBuilderOptions table_builder_options(
- r->ioptions, r->internal_comparator, &int_tbl_prop_collector_factories,
- compression_type, r->ioptions.compression_opts,
- nullptr /* compression_dict */, r->skip_filters, r->column_family_name,
- unknown_level);
+ r->ioptions, r->mutable_cf_options, r->internal_comparator,
+ &int_tbl_prop_collector_factories, compression_type,
+ r->ioptions.compression_opts, nullptr /* compression_dict */,
+ r->skip_filters, r->column_family_name, unknown_level);
r->file_writer.reset(
new WritableFileWriter(std::move(sst_file), r->env_options));