This commit is contained in:
Jussi Saurio
2025-06-05 08:50:48 +03:00
parent 6e5f05a257
commit 8941c4a537

View File

@@ -4013,11 +4013,10 @@ impl BTreeCursor {
)?;
if page_type.is_table() {
let BTreeCell::TableLeafCell(TableLeafCell {
_rowid,
_payload,
..
}) = cell else {
unreachable!("unexpected page_type");
_rowid, _payload, ..
}) = cell
else {
unreachable!("unexpected page_type");
};
Ok(CursorResult::Ok(Some(_rowid)))
} else {
@@ -4378,10 +4377,9 @@ impl BTreeCursor {
};
DeleteSavepoint::Payload(record)
} else {
let Some(rowid) = return_if_io!(self.rowid())
else {
panic!("cursor should be pointing to a record with a rowid");
};
let Some(rowid) = return_if_io!(self.rowid()) else {
panic!("cursor should be pointing to a record with a rowid");
};
DeleteSavepoint::Rowid(rowid)
};
let delete_info = self.state.mut_delete_info().unwrap();