diff --git a/db/c.cc b/db/c.cc index db78030df..b0b19de24 100644 --- a/db/c.cc +++ b/db/c.cc @@ -4441,6 +4441,16 @@ uint64_t rocksdb_approximate_memory_usage_get_cache_total( return memory_usage->cache_total; } +void rocksdb_options_set_dump_malloc_stats(rocksdb_options_t* opt, + unsigned char val) { + opt->rep.dump_malloc_stats = val; +} + +void rocksdb_options_set_memtable_whole_key_filtering(rocksdb_options_t* opt, + unsigned char val) { + opt->rep.memtable_whole_key_filtering = val; +} + // deletes container with memory usage estimates void rocksdb_approximate_memory_usage_destroy(rocksdb_memory_usage_t* usage) { delete usage; diff --git a/include/rocksdb/c.h b/include/rocksdb/c.h index dafefceb3..419c82799 100644 --- a/include/rocksdb/c.h +++ b/include/rocksdb/c.h @@ -1796,6 +1796,13 @@ extern ROCKSDB_LIBRARY_API uint64_t rocksdb_approximate_memory_usage_get_cache_total( rocksdb_memory_usage_t* memory_usage); +extern ROCKSDB_LIBRARY_API void rocksdb_options_set_dump_malloc_stats( + rocksdb_options_t*, unsigned char); + +extern ROCKSDB_LIBRARY_API void +rocksdb_options_set_memtable_whole_key_filtering(rocksdb_options_t*, + unsigned char); + #ifdef __cplusplus } /* end extern "C" */ #endif