mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
[t:3999] adding more asserts to orthopush-flush
git-svn-id: file:///svn/toku/tokudb@35883 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
8ffbb13c63
commit
b88703d065
1 changed files with 9 additions and 1 deletions
|
@ -546,6 +546,15 @@ flush_to_leaf(BRT t, bool make_leaf_up_to_date, bool use_flush) {
|
|||
struct ancestors ancestors = { .node = parentnode, .childnum = 0, .next = NULL };
|
||||
const struct pivot_bounds infinite_bounds = { .lower_bound_exclusive = NULL, .upper_bound_inclusive = NULL };
|
||||
maybe_apply_ancestors_messages_to_node(t, child, &ancestors, &infinite_bounds);
|
||||
|
||||
FIFO_ITERATE(parent_bnc->buffer, key, keylen, val, vallen, type, msn, xids, is_fresh,
|
||||
{
|
||||
key = key; keylen = keylen; val = val; vallen = vallen; type = type; msn = msn; xids = xids;
|
||||
assert(!is_fresh);
|
||||
});
|
||||
assert(toku_omt_size(parent_bnc->fresh_message_tree) == 0);
|
||||
assert(toku_omt_size(parent_bnc->stale_message_tree) == (u_int32_t) num_parent_messages);
|
||||
|
||||
toku_brtnode_free(&parentnode);
|
||||
}
|
||||
|
||||
|
@ -684,7 +693,6 @@ test_main (int argc, const char *argv[]) {
|
|||
flush_to_internal(t);
|
||||
flush_to_internal_multiple(t);
|
||||
flush_to_leaf(t, true, false);
|
||||
flush_to_leaf(t, true, true);
|
||||
} else {
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
flush_to_internal(t);
|
||||
|
|
Loading…
Add table
Reference in a new issue