mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
do not move_to if we are already inserting in correct place
This commit is contained in:
@@ -4297,7 +4297,7 @@ impl BTreeCursor {
|
||||
},
|
||||
None => {
|
||||
tracing::trace!("moved {}", moved_before);
|
||||
if !moved_before {
|
||||
if !moved_before && !matches!(self.state, CursorState::Write(..)) {
|
||||
match key {
|
||||
BTreeKey::IndexKey(_) => {
|
||||
return_if_io!(self
|
||||
|
||||
Reference in New Issue
Block a user