|
|
@ -836,6 +836,7 @@ impl DB { |
|
|
|
&self.path.as_path() |
|
|
|
&self.path.as_path() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Flush database memtable to SST files on disk (with options).
|
|
|
|
pub fn flush_opt(&self, flushopts: &FlushOptions) -> Result<(), Error> { |
|
|
|
pub fn flush_opt(&self, flushopts: &FlushOptions) -> Result<(), Error> { |
|
|
|
unsafe { |
|
|
|
unsafe { |
|
|
|
ffi_try!(ffi::rocksdb_flush(self.inner, flushopts.inner,)); |
|
|
|
ffi_try!(ffi::rocksdb_flush(self.inner, flushopts.inner,)); |
|
|
@ -843,6 +844,7 @@ impl DB { |
|
|
|
Ok(()) |
|
|
|
Ok(()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Flush database memtable to SST files on disk.
|
|
|
|
pub fn flush(&self) -> Result<(), Error> { |
|
|
|
pub fn flush(&self) -> Result<(), Error> { |
|
|
|
self.flush_opt(&FlushOptions::default()) |
|
|
|
self.flush_opt(&FlushOptions::default()) |
|
|
|
} |
|
|
|
} |
|
|
|