[t:3761], slight fix to bnc_apply_messages_to_basement_node

git-svn-id: file:///svn/toku/tokudb@36789 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Zardosht Kasheff 2013-04-16 23:59:55 -04:00 committed by Yoni Fogel
parent 489e8c7b5f
commit 84cd9cd9b7

View file

@ -5797,8 +5797,8 @@ bnc_apply_messages_to_basement_node(
for (u_int32_t ube = fresh_ube; fresh_lbi < ube; --ube) {
r = toku_omt_delete_at(bnc->fresh_message_tree, fresh_lbi); assert_zero(r);
}
if (max_msn_applied.msn > bn->max_msn_applied.msn) {
bn->max_msn_applied = max_msn_applied;
if (ancestor->max_msn_applied_to_node_on_disk.msn > bn->max_msn_applied.msn) {
bn->max_msn_applied = ancestor->max_msn_applied_to_node_on_disk;
}
return r;
}