From 74dee7a20f16824b1233c276d97aec244336d4c3 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Mon, 7 Aug 2023 01:42:26 +0300 Subject: [PATCH] fix rocksdb_options_set_plain_table_factory --- librocksdb-sys/tests/ffi.rs | 2 +- src/db_options.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/librocksdb-sys/tests/ffi.rs b/librocksdb-sys/tests/ffi.rs index a20c0a5..df8c595 100644 --- a/librocksdb-sys/tests/ffi.rs +++ b/librocksdb-sys/tests/ffi.rs @@ -1072,7 +1072,7 @@ fn ffi() { rocksdb_slicetransform_create_fixed_prefix(3), ); rocksdb_options_set_hash_skip_list_rep(options, 5000, 4, 4); - rocksdb_options_set_plain_table_factory(options, 4, 10, 0.75, 16); + rocksdb_options_set_plain_table_factory(options, 4, 10, 0.75, 16, 0, 0, 0, 0); rocksdb_options_set_allow_concurrent_memtable_write(options, 0); db = rocksdb_open(options, dbname, &mut err); diff --git a/src/db_options.rs b/src/db_options.rs index f0b381e..69fc545 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -2446,6 +2446,10 @@ impl Options { options.bloom_bits_per_key, options.hash_table_ratio, options.index_sparseness, + 0, + 0, + 0, + 0, ); } }