diff --git a/core/storage/btree.rs b/core/storage/btree.rs index 845dddf32..14d446c13 100644 --- a/core/storage/btree.rs +++ b/core/storage/btree.rs @@ -3986,6 +3986,7 @@ impl BTreeCursor { #[instrument(skip_all, level = Level::INFO)] pub fn seek_to_last(&mut self) -> Result> { + assert!(self.mv_cursor.is_none()); let has_record = return_if_io!(self.move_to_rightmost()); self.invalidate_record(); self.has_record.replace(has_record);