Update rocksdb

Remove option that no longer exists in rocksdb
master
Richard Dodd 7 years ago
parent 1c3333636d
commit ccb40173fe
  1. 2
      librocksdb-sys/rocksdb
  2. 2
      librocksdb-sys/rocksdb_lib_sources.txt
  3. 33
      src/db_options.rs

@ -1 +1 @@
Subproject commit 6e0597951e51e8dd3b28104d31e52962e00c101f
Subproject commit 2e98ac018f8e1d886c75ecc2268e8a52f685bf39

File diff suppressed because one or more lines are too long

@ -399,39 +399,6 @@ impl Options {
}
}
/// Hints to the OS that it should not buffer disk I/O. Enabling this
/// parameter may improve performance but increases pressure on the
/// system cache.
///
/// The exact behavior of this parameter is platform dependent.
///
/// On POSIX systems, after RocksDB reads data from disk it will
/// mark the pages as "unneeded". The operating system may - or may not
/// - evict these pages from memory, reducing pressure on the system
/// cache. If the disk block is requested again this can result in
/// additional disk I/O.
///
/// On WINDOWS systems, files will be opened in "unbuffered I/O" mode
/// which means that data read from the disk will not be cached or
/// bufferized. The hardware buffer of the devices may however still
/// be used. Memory mapped files are not impacted by this parameter.
///
/// Default: true
///
/// # Example
///
/// ```
/// use rocksdb::Options;
///
/// let mut opts = Options::default();
/// opts.set_allow_os_buffer(false);
/// ```
#[deprecated(since="0.7.0", note="replaced with set_use_direct_reads/set_use_direct_writes methods")]
pub fn set_allow_os_buffer(&mut self, is_allow: bool) {
self.set_use_direct_reads(!is_allow);
self.set_use_direct_writes(!is_allow);
}
/// Sets the number of shards used for table cache.
///
/// Default: `6`

Loading…
Cancel
Save