From eb32ca1d3c28d13d402172200843a49007e95d3c Mon Sep 17 00:00:00 2001 From: "Bradley C. Kuszmaul" Date: Tue, 16 Apr 2013 23:59:42 -0400 Subject: [PATCH] [t:3564] Fix brt-test. Refs #3564. git-svn-id: file:///svn/toku/tokudb@32702 c7de825b-a66e-492c-adef-691d508d4ae1 --- newbrt/brt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/newbrt/brt.c b/newbrt/brt.c index 8666a907159..a2928bc8b0e 100644 --- a/newbrt/brt.c +++ b/newbrt/brt.c @@ -5143,19 +5143,21 @@ maybe_apply_ancestors_messages_to_node (BRT t, BRTNODE node, ANCESTORS ancestors BASEMENTNODE curr_bn = BLB(node, i); ANCESTORS curr_ancestors = ancestors; struct pivot_bounds curr_bounds = next_pivot_keys(node, i, bounds); + BRTNODE child = node; while (curr_ancestors) { height++; apply_ancestors_messages_to_leafnode_and_maybe_flush( t, curr_bn, curr_ancestors, - node, + child, &curr_bounds, made_change ); if (curr_ancestors->node->max_msn_applied_to_node_in_memory.msn > node->max_msn_applied_to_node_in_memory.msn) { node->max_msn_applied_to_node_in_memory = curr_ancestors->node->max_msn_applied_to_node_in_memory; } + child = curr_ancestors->node; curr_ancestors= curr_ancestors->next; } BLB_SOFTCOPYISUPTODATE(node, i) = TRUE;