diff --git a/db/c.cc b/db/c.cc index 91499f8b5..3ce278061 100644 --- a/db/c.cc +++ b/db/c.cc @@ -6468,6 +6468,16 @@ void rocksdb_options_set_memtable_whole_key_filtering(rocksdb_options_t* opt, opt->rep.memtable_whole_key_filtering = val; } +void rocksdb_options_set_avoid_unnecessary_blocking_io(rocksdb_options_t* opt, + unsigned char val) { + opt->rep.avoid_unnecessary_blocking_io = val; +} + +unsigned char rocksdb_options_get_avoid_unnecessary_blocking_io( + rocksdb_options_t* opt) { + return opt->rep.avoid_unnecessary_blocking_io; +} + // 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 d55b79379..2db9d406e 100644 --- a/include/rocksdb/c.h +++ b/include/rocksdb/c.h @@ -1551,6 +1551,11 @@ extern ROCKSDB_LIBRARY_API void rocksdb_options_set_report_bg_io_stats( rocksdb_options_t*, int); extern ROCKSDB_LIBRARY_API unsigned char rocksdb_options_get_report_bg_io_stats( rocksdb_options_t*); +extern ROCKSDB_LIBRARY_API void +rocksdb_options_set_avoid_unnecessary_blocking_io(rocksdb_options_t*, + unsigned char); +extern ROCKSDB_LIBRARY_API unsigned char +rocksdb_options_get_avoid_unnecessary_blocking_io(rocksdb_options_t*); extern ROCKSDB_LIBRARY_API void rocksdb_options_set_experimental_mempurge_threshold(rocksdb_options_t*, double);