Merge pull request #139 from urbint/remove-set-disable-data-sync

Remove `set_disable_data_sync`
master
Tyler Neely 7 years ago committed by GitHub
commit 3a02c5cfca
  1. 2
      librocksdb-sys/src/lib.rs
  2. 4
      src/db_options.rs
  3. 1
      src/lib.rs

@ -671,8 +671,6 @@ extern "C" {
pub fn rocksdb_options_set_max_sequential_skip_in_iterations(opt: *mut rocksdb_options_t, pub fn rocksdb_options_set_max_sequential_skip_in_iterations(opt: *mut rocksdb_options_t,
v: uint64_t); v: uint64_t);
pub fn rocksdb_options_set_disable_data_sync(opt: *mut rocksdb_options_t, v: c_int);
pub fn rocksdb_options_set_disable_auto_compactions(opt: *mut rocksdb_options_t, v: c_int); pub fn rocksdb_options_set_disable_auto_compactions(opt: *mut rocksdb_options_t, v: c_int);
pub fn rocksdb_options_set_delete_obsolete_files_period_micros(opt: *mut rocksdb_options_t, pub fn rocksdb_options_set_delete_obsolete_files_period_micros(opt: *mut rocksdb_options_t,

@ -369,10 +369,6 @@ impl Options {
allow as c_uchar) } allow as c_uchar) }
} }
pub fn set_disable_data_sync(&mut self, disable: bool) {
unsafe { ffi::rocksdb_options_set_disable_data_sync(self.inner, disable as c_int) }
}
/// Enable direct I/O mode for reading /// Enable direct I/O mode for reading
/// they may or may not improve performance depending on the use case /// they may or may not improve performance depending on the use case
/// ///

@ -126,7 +126,6 @@ pub struct BlockBasedOptions {
/// opts.set_max_open_files(10000); /// opts.set_max_open_files(10000);
/// opts.set_use_fsync(false); /// opts.set_use_fsync(false);
/// opts.set_bytes_per_sync(8388608); /// opts.set_bytes_per_sync(8388608);
/// opts.set_disable_data_sync(false);
/// opts.optimize_for_point_lookup(1024); /// opts.optimize_for_point_lookup(1024);
/// opts.set_table_cache_num_shard_bits(6); /// opts.set_table_cache_num_shard_bits(6);
/// opts.set_max_write_buffer_number(32); /// opts.set_max_write_buffer_number(32);

Loading…
Cancel
Save