From 0fde291abe355107b26ac8fe193e007d87ec7c1c Mon Sep 17 00:00:00 2001 From: Warren Falk Date: Tue, 29 Dec 2015 18:30:12 -0500 Subject: [PATCH] expose memtable_prefix_bloom_huge_page_tlb_size option to C API --- db/c.cc | 5 +++++ include/rocksdb/c.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/db/c.cc b/db/c.cc index 3c98429787..4c84a472e2 100644 --- a/db/c.cc +++ b/db/c.cc @@ -1766,6 +1766,11 @@ void rocksdb_options_set_memtable_prefix_bloom_probes( opt->rep.memtable_prefix_bloom_probes = v; } +void rocksdb_options_set_memtable_prefix_bloom_huge_page_tlb_size( + rocksdb_options_t* opt, size_t v) { + opt->rep.memtable_prefix_bloom_huge_page_tlb_size = v; +} + void rocksdb_options_set_hash_skip_list_rep( rocksdb_options_t *opt, size_t bucket_count, int32_t skiplist_height, int32_t skiplist_branching_factor) { diff --git a/include/rocksdb/c.h b/include/rocksdb/c.h index 6bb3b85383..9a4ac33899 100644 --- a/include/rocksdb/c.h +++ b/include/rocksdb/c.h @@ -663,6 +663,8 @@ extern ROCKSDB_LIBRARY_API void rocksdb_options_set_memtable_prefix_bloom_bits( rocksdb_options_t*, uint32_t); extern ROCKSDB_LIBRARY_API void rocksdb_options_set_memtable_prefix_bloom_probes(rocksdb_options_t*, uint32_t); +extern ROCKSDB_LIBRARY_API void +rocksdb_options_set_memtable_prefix_bloom_huge_page_tlb_size(rocksdb_options_t*, size_t); extern ROCKSDB_LIBRARY_API void rocksdb_options_set_max_successive_merges( rocksdb_options_t*, size_t);