[btree] fix bug in earlier patch. inc_children was always begin called.

This commit is contained in:
Joe Thornber 2013-06-20 14:26:17 +01:00
parent 16c9efc85c
commit e89d81e318

View File

@ -694,7 +694,8 @@ namespace persistent_data {
for (;;) {
inc = spine.step(block);
inc_children<ValueTraits>(spine, leaf_rc);
if (inc)
inc_children<ValueTraits>(spine, leaf_rc);
// patch up the parent to point to the new shadow
if (spine.has_parent()) {