Commit 59e0cd1c authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4793], fix maybe_destroy_child_blbs

git-svn-id: file:///svn/toku/tokudb@42595 c7de825b-a66e-492c-adef-691d508d4ae1
parent 66787336
...@@ -151,7 +151,7 @@ maybe_destroy_child_blbs(BRTNODE node, BRTNODE child) ...@@ -151,7 +151,7 @@ maybe_destroy_child_blbs(BRTNODE node, BRTNODE child)
// If the node is already fully in memory, as in upgrade, we don't // If the node is already fully in memory, as in upgrade, we don't
// need to destroy the basement nodes because they are all equally // need to destroy the basement nodes because they are all equally
// up to date. // up to date.
if (!is_entire_node_in_memory(child) && if (child->n_children > 1 &&
child->height == 0 && child->height == 0 &&
!child->dirty) { !child->dirty) {
for (int i = 0; i < child->n_children; ++i) { for (int i = 0; i < child->n_children; ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment