|
|
|
@ -125,10 +125,10 @@ insert_random_message_to_leaf(BRT t, BRTNODE leafnode, BASEMENTNODE blb, LEAFENT |
|
|
|
msg.u.id.val = valdbt; |
|
|
|
size_t memsize; |
|
|
|
int64_t numbytes; |
|
|
|
int r = apply_msg_to_leafentry(&msg, NULL, &memsize, save, NULL, NULL, NULL, &numbytes); |
|
|
|
int r = apply_msg_to_leafentry(&msg, NULL, &memsize, save, NULL, NULL, NULL, NULL, NULL, &numbytes); |
|
|
|
assert_zero(r); |
|
|
|
bool made_change; |
|
|
|
brt_leaf_put_cmd(t->compare_fun, t->update_fun, NULL, leafnode, blb, &msg, &made_change, NULL); |
|
|
|
brt_leaf_put_cmd(t->compare_fun, t->update_fun, NULL, leafnode, blb, &msg, &made_change, NULL, NULL, NULL); |
|
|
|
if (msn.msn > blb->max_msn_applied.msn) { |
|
|
|
blb->max_msn_applied = msn; |
|
|
|
} |
|
|
|
@ -167,14 +167,14 @@ insert_same_message_to_leaves(BRT t, BRTNODE child1, BASEMENTNODE blb1, BRTNODE |
|
|
|
msg.u.id.val = valdbt; |
|
|
|
size_t memsize; |
|
|
|
int64_t numbytes; |
|
|
|
int r = apply_msg_to_leafentry(&msg, NULL, &memsize, save, NULL, NULL, NULL, &numbytes); |
|
|
|
int r = apply_msg_to_leafentry(&msg, NULL, &memsize, save, NULL, NULL, NULL, NULL, NULL, &numbytes); |
|
|
|
assert_zero(r); |
|
|
|
bool made_change; |
|
|
|
brt_leaf_put_cmd(t->compare_fun, t->update_fun, NULL, child1, blb1, &msg, &made_change, NULL); |
|
|
|
brt_leaf_put_cmd(t->compare_fun, t->update_fun, NULL, child1, blb1, &msg, &made_change, NULL, NULL, NULL); |
|
|
|
if (msn.msn > blb1->max_msn_applied.msn) { |
|
|
|
blb1->max_msn_applied = msn; |
|
|
|
} |
|
|
|
brt_leaf_put_cmd(t->compare_fun, t->update_fun, NULL, child2, blb2, &msg, &made_change, NULL); |
|
|
|
brt_leaf_put_cmd(t->compare_fun, t->update_fun, NULL, child2, blb2, &msg, &made_change, NULL, NULL, NULL); |
|
|
|
if (msn.msn > blb2->max_msn_applied.msn) { |
|
|
|
blb2->max_msn_applied = msn; |
|
|
|
} |
|
|
|
@ -587,7 +587,7 @@ flush_to_leaf(BRT t, bool make_leaf_up_to_date, bool use_flush) { |
|
|
|
for (i = 0; i < num_parent_messages; ++i) { |
|
|
|
if (!parent_messages_is_fresh[i]) { |
|
|
|
bool made_change; |
|
|
|
toku_apply_cmd_to_leaf(t->compare_fun, t->update_fun, &t->h->descriptor, child, parent_messages[i], &made_change, NULL); |
|
|
|
toku_apply_cmd_to_leaf(t->compare_fun, t->update_fun, &t->h->descriptor, child, parent_messages[i], &made_change, NULL, NULL, NULL); |
|
|
|
} |
|
|
|
} |
|
|
|
for (i = 0; i < 8; ++i) { |
|
|
|
@ -811,7 +811,7 @@ flush_to_leaf_with_keyrange(BRT t, bool make_leaf_up_to_date) { |
|
|
|
if (dummy_cmp(NULL, parent_messages[i]->u.id.key, &childkeys[7]) <= 0 && |
|
|
|
!parent_messages_is_fresh[i]) { |
|
|
|
bool made_change; |
|
|
|
toku_apply_cmd_to_leaf(t->compare_fun, t->update_fun, &t->h->descriptor, child, parent_messages[i], &made_change, NULL); |
|
|
|
toku_apply_cmd_to_leaf(t->compare_fun, t->update_fun, &t->h->descriptor, child, parent_messages[i], &made_change, NULL, NULL, NULL); |
|
|
|
} |
|
|
|
} |
|
|
|
for (i = 0; i < 8; ++i) { |
|
|
|
@ -998,8 +998,8 @@ compare_apply_and_flush(BRT t, bool make_leaf_up_to_date) { |
|
|
|
for (i = 0; i < num_parent_messages; ++i) { |
|
|
|
if (!parent_messages_is_fresh[i]) { |
|
|
|
bool made_change; |
|
|
|
toku_apply_cmd_to_leaf(t->compare_fun, t->update_fun, &t->h->descriptor, child1, parent_messages[i], &made_change, NULL); |
|
|
|
toku_apply_cmd_to_leaf(t->compare_fun, t->update_fun, &t->h->descriptor, child2, parent_messages[i], &made_change, NULL); |
|
|
|
toku_apply_cmd_to_leaf(t->compare_fun, t->update_fun, &t->h->descriptor, child1, parent_messages[i], &made_change, NULL, NULL, NULL); |
|
|
|
toku_apply_cmd_to_leaf(t->compare_fun, t->update_fun, &t->h->descriptor, child2, parent_messages[i], &made_change, NULL, NULL, NULL); |
|
|
|
} |
|
|
|
} |
|
|
|
for (i = 0; i < 8; ++i) { |
|
|
|
|