mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-09 18:24:20 +01:00
use seek() instead of do_seek() to set iteration state
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user