Add comment about code duplication

This commit is contained in:
jussisaurio
2024-10-05 17:17:33 +03:00
parent d2233d69d3
commit 3826d4e1ff

View File

@@ -544,6 +544,8 @@ impl BTreeCursor {
}
}
// TODO: there is a lot of code duplication here between move_to, move_to_index_leaf and move_to_table_leaf.
// I wanted to get this working first, but this should really be refactored. - Jussi
fn move_to_index_leaf(&mut self, key: &OwnedRecord, cmp: SeekOp) -> Result<CursorResult<()>> {
self.move_to_root();
loop {