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