Checking equality when we delete
[?]
May 2, 2021, 9:06 AM
R27IKHPAAJTHCVTLIIRI2NCLMTYXRDU6KETMGYARFDZTQW373JHQCDependencies
- [2]
DASFQGORDebugging - [3]
WS4ZQM4RDebugging, tests, etc. - [4]
OFINGD26implementing prev() on cursors (+ some cleanup) - [5]
HN6Z5DU4Cleanup - [6]
OTWDDJE7Trait/type cleanup - [7]
QYDGYIZRSplit trait Representable into its mandatory part and an optional part - [8]
UUUVNC4DDebugging/cleanup around cursors - [9]
TSMS6W4DFully commented implementation of Sized nodes + massive cleanup - [10]
OP6SVMODResetting history
Change contents
- replacement in sanakirja-core/src/btree/del.rs at line 81
V: Storable + ?Sized + core::fmt::Debug,V: Storable + ?Sized + core::fmt::Debug + PartialEq, - replacement in sanakirja-core/src/btree/del.rs at line 90[3.9635]→[3.37282:37330](∅→∅),[3.37330]→[3.7504:7559](∅→∅),[3.7504]→[3.7504:7559](∅→∅),[3.385]→[3.53628:53654](∅→∅),[3.7559]→[3.53628:53654](∅→∅),[3.53628]→[3.53628:53654](∅→∅)
if cursor.set(txn, key, value)?.is_none() {// If the key and value weren't found, return.return Ok(false);// If the key and value weren't found, return.match (cursor.set(txn, key, value)?, value) {(Some((k, v)), Some(value)) if k == key && v == value => {}(Some((k, _)), None) if k == key => {}_ => return Ok(false),