Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
c386d06a
Commit
c386d06a
authored
Mar 02, 2013
by
Mukund Sivaraman
Browse files
[2811] Don't call rebalance for subtree roots
parent
56f41442
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/domaintree.h
View file @
c386d06a
...
...
@@ -1864,11 +1864,13 @@ DomainTree<T>::insert(util::MemorySegment& mem_sgmt,
}
else
if
(
order
<
0
)
{
node
->
setSubTreeRoot
(
false
);
parent
->
left_
=
node
;
insertRebalance
(
current_root
,
node
);
}
else
{
node
->
setSubTreeRoot
(
false
);
parent
->
right_
=
node
;
insertRebalance
(
current_root
,
node
);
}
insertRebalance
(
current_root
,
node
);
if
(
new_node
!=
NULL
)
{
*
new_node
=
node
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment