mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 17:48:17 +00:00
use seek() instead of do_seek() to set iteration state
This commit is contained in:
parent
5e3a37a192
commit
0888c71ba0
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue