refs #48, have ft_flush_some_child still do a flush if the child is a leaf node, so garbage collection happens

This commit is contained in:
Zardosht Kasheff 2013-08-18 11:13:46 -04:00
parent fcbaec38c8
commit 6e12defeb0

View file

@ -1651,7 +1651,7 @@ static void ft_flush_some_child(
//VERIFY_NODE(brt, child);
// only do the following work if there is a flush to perform
if (toku_bnc_n_entries(BNC(parent, childnum)) > 0) {
if (toku_bnc_n_entries(BNC(parent, childnum)) > 0 || parent->height == 1) {
if (!parent->dirty) {
dirtied++;
parent->dirty = 1;