master
Valerian Saliou 6 years ago
parent 242d1bf8fd
commit c7e08cfd4b
No known key found for this signature in database
GPG Key ID: C648A8138046772A
  1. 12
      src/db_options.rs

@ -1221,6 +1221,18 @@ impl FlushOptions {
FlushOptions::default()
}
/// Waits until the flush is done.
///
/// Default: true
///
/// # Example
///
/// ```
/// use rocksdb::FlushOptions;
///
/// let mut options = FlushOptions::default();
/// options.set_wait(false);
/// ```
pub fn set_wait(&mut self, wait: bool) {
unsafe {
ffi::rocksdb_flushoptions_set_wait(self.inner, wait as c_uchar);

Loading…
Cancel
Save