Merge pull request #160 from ongardie-ebay/readahead

Expose advise_random_on_open option
master
Tyler Neely 7 years ago committed by GitHub
commit a305266623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      src/db_options.rs

@ -930,6 +930,17 @@ impl Options {
}
}
/// When set to true, reading SST files will opt out of the filesystem's
/// readahead. Setting this to false may improve sequential iteration
/// performance.
///
/// Default: `true`
pub fn set_advise_random_on_open(&mut self, advise: bool) {
unsafe {
ffi::rocksdb_options_set_advise_random_on_open(self.inner, advise as c_uchar)
}
}
/// Sets the number of levels for this database.
pub fn set_num_levels(&mut self, n: c_int) {
unsafe {

Loading…
Cancel
Save