From 3b44ee922ca0e8583405c1f503eaa67fd79334b6 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 5 Jan 2023 13:21:04 +0300 Subject: [PATCH] Make set_snapshot method public (#711) --- src/db_options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db_options.rs b/src/db_options.rs index 34462a5..177bd2e 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -3303,7 +3303,7 @@ impl ReadOptions { /// Sets the snapshot which should be used for the read. /// The snapshot must belong to the DB that is being read and must /// not have been released. - pub(crate) fn set_snapshot(&mut self, snapshot: &SnapshotWithThreadMode) { + pub fn set_snapshot(&mut self, snapshot: &SnapshotWithThreadMode) { unsafe { ffi::rocksdb_readoptions_set_snapshot(self.inner, snapshot.inner); }