fix missing iteration-optimized read options on several stream types

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-01-25 01:35:18 +00:00
1 parent d59f68a51a
commit 94f2384fb0
6 files changed
+28 -18

No files matched your search

+2 -2
View File
@@ -31,7 +31,7 @@ where
pub fn rev_raw_stream(self: &Arc<Self>) -> impl Stream<Item = Result<KeyVal<'_>>> + Send {
use crate::pool::Seek;
let opts = super::read_options_default();
let opts = super::iter_options_default();
let state = stream::State::new(self, opts);
if is_cached(self) {
let state = state.init_rev(None);
@@ -66,7 +66,7 @@ pub fn rev_raw_stream(self: &Arc<Self>) -> impl Stream<Item = Result<KeyVal<'_>>
fields(%map),
)]
pub(super) fn is_cached(map: &Arc<super::Map>) -> bool {
let opts = super::cache_read_options_default();
let opts = super::cache_iter_options_default();
let state = stream::State::new(map, opts).init_rev(None);
!state.is_incomplete()