From 3826d4e1ff6501375dae3df4e96c22ba328b70b4 Mon Sep 17 00:00:00 2001 From: jussisaurio Date: Sat, 5 Oct 2024 17:17:33 +0300 Subject: [PATCH] Add comment about code duplication --- core/storage/btree.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/storage/btree.rs b/core/storage/btree.rs index fd1535d69..b702cc802 100644 --- a/core/storage/btree.rs +++ b/core/storage/btree.rs @@ -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> { self.move_to_root(); loop {