use seek() instead of do_seek() to set iteration state

This commit is contained in:
Jussi Saurio 2025-04-09 10:26:02 +03:00
parent 5e3a37a192
commit 0888c71ba0

View file

@ -3390,7 +3390,7 @@ impl BTreeCursor {
/// Search for a key in an Index Btree. Looking up indexes that need to be unique, we cannot compare the rowid
pub fn key_exists_in_index(&mut self, key: &ImmutableRecord) -> Result<CursorResult<bool>> {
return_if_io!(self.do_seek(SeekKey::IndexKey(key), SeekOp::GE));
return_if_io!(self.seek(SeekKey::IndexKey(key), SeekOp::GE));
let record_opt = self.record();
match record_opt.as_ref() {