add option to disable rocksdb checksums
reference runtime state for default option initialization Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
13335042b7
commit
98f9570547
14 changed files with 62 additions and 36 deletions
|
@ -80,7 +80,7 @@ where
|
|||
{
|
||||
use crate::pool::Seek;
|
||||
|
||||
let opts = super::iter_options_default();
|
||||
let opts = super::iter_options_default(&self.db);
|
||||
let state = stream::State::new(self, opts);
|
||||
if is_cached(self, from) {
|
||||
let state = state.init_rev(from.as_ref().into());
|
||||
|
@ -118,7 +118,7 @@ pub(super) fn is_cached<P>(map: &Arc<super::Map>, from: &P) -> bool
|
|||
where
|
||||
P: AsRef<[u8]> + ?Sized,
|
||||
{
|
||||
let cache_opts = super::cache_iter_options_default();
|
||||
let cache_opts = super::cache_iter_options_default(&map.db);
|
||||
let cache_status = stream::State::new(map, cache_opts)
|
||||
.init_rev(from.as_ref().into())
|
||||
.status();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue