[btree] Avoid an extra shadow op in split_sibling
This commit is contained in:
parent
c8a5d0753d
commit
16c9efc85c
@ -669,12 +669,11 @@ namespace persistent_data {
|
||||
p.overwrite_at(parent_index, l.key_at(0), left);
|
||||
p.insert_at(parent_index + 1, r.key_at(0), right.get_location());
|
||||
|
||||
if (key >= r.key_at(0)) {
|
||||
spine.pop();
|
||||
if (key < r.key_at(0))
|
||||
spine.step(left);
|
||||
else
|
||||
spine.step(right);
|
||||
}
|
||||
}
|
||||
|
||||
// Returns true if we need a new insertion, rather than overwrite.
|
||||
template <unsigned Levels, typename _>
|
||||
|
Loading…
Reference in New Issue
Block a user