diff --git a/core/storage/btree.rs b/core/storage/btree.rs index 95dcad520..620dd7662 100644 --- a/core/storage/btree.rs +++ b/core/storage/btree.rs @@ -3148,6 +3148,7 @@ impl BTreeCursor { }, None => { if !moved_before { + self.iteration_state = IterationState::Iterating(IterationDirection::Forwards); match key { BTreeKey::IndexKey(_) => { return_if_io!(self