diff --git a/db/c.cc b/db/c.cc index a7e4360c6..d5ac613b4 100644 --- a/db/c.cc +++ b/db/c.cc @@ -2588,6 +2588,12 @@ void rocksdb_block_based_options_set_partition_filters( options->rep.partition_filters = partition_filters; } +void rocksdb_block_based_options_set_optimize_filters_for_memory( + rocksdb_block_based_table_options_t* options, + unsigned char optimize_filters_for_memory) { + options->rep.optimize_filters_for_memory = optimize_filters_for_memory; +} + void rocksdb_block_based_options_set_use_delta_encoding( rocksdb_block_based_table_options_t* options, unsigned char use_delta_encoding) { diff --git a/include/rocksdb/c.h b/include/rocksdb/c.h index 1639f3cd3..5f3e586f2 100644 --- a/include/rocksdb/c.h +++ b/include/rocksdb/c.h @@ -986,6 +986,10 @@ rocksdb_block_based_options_set_partition_filters( rocksdb_block_based_table_options_t* options, unsigned char partition_filters); extern ROCKSDB_LIBRARY_API void +rocksdb_block_based_options_set_optimize_filters_for_memory( + rocksdb_block_based_table_options_t* options, + unsigned char optimize_filters_for_memory); +extern ROCKSDB_LIBRARY_API void rocksdb_block_based_options_set_use_delta_encoding( rocksdb_block_based_table_options_t* options, unsigned char use_delta_encoding);