Commit 42497f92 authored by Christian Rober's avatar Christian Rober Committed by Yoni Fogel
Browse files

[t:4759] Checking in MSN fix found due to recent test changes.

git-svn-id: file:///svn/toku/tokudb@42485 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1e25fc76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -574,7 +574,7 @@ rebalance_brtnode_leaf(BRTNODE node, unsigned int basementnodesize)
    u_int32_t tmp_seqinsert = BLB_SEQINSERT(node, num_orig_basements - 1);

    // choose the max msn applied to any basement as the max msn applied to all new basements
    MSN max_msn = MIN_MSN;
    MSN max_msn = ZERO_MSN;
    for (uint32_t i = 0; i < num_orig_basements; i++) {
        MSN curr_msn = BLB_MAX_MSN_APPLIED(node,i);
        max_msn = (curr_msn.msn > max_msn.msn) ? curr_msn : max_msn;
+1 −1
Original line number Diff line number Diff line
@@ -1431,7 +1431,7 @@ toku_initialize_empty_brtnode (BRTNODE n, BLOCKNUM nodename, int height, int num
    else
	STATUS_VALUE(BRT_CREATE_NONLEAF)++;

    n->max_msn_applied_to_node_on_disk = MIN_MSN;    // correct value for root node, harmless for others
    n->max_msn_applied_to_node_on_disk = ZERO_MSN;    // correct value for root node, harmless for others
    n->h = h;
    n->nodesize = nodesize;
    n->flags = flags;