Make set_snapshot method public (#711)

master
Andrew 2 years ago committed by GitHub
parent 0da4a7ac31
commit 3b44ee922c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/db_options.rs

@ -3303,7 +3303,7 @@ impl ReadOptions {
/// Sets the snapshot which should be used for the read. /// Sets the snapshot which should be used for the read.
/// The snapshot must belong to the DB that is being read and must /// The snapshot must belong to the DB that is being read and must
/// not have been released. /// not have been released.
pub(crate) fn set_snapshot<D: DBAccess>(&mut self, snapshot: &SnapshotWithThreadMode<D>) { pub fn set_snapshot<D: DBAccess>(&mut self, snapshot: &SnapshotWithThreadMode<D>) {
unsafe { unsafe {
ffi::rocksdb_readoptions_set_snapshot(self.inner, snapshot.inner); ffi::rocksdb_readoptions_set_snapshot(self.inner, snapshot.inner);
} }

Loading…
Cancel
Save