mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
[t:3882], modify brt-serialize-test to verify that estimates are properly stored and calculated when serializing and deserializing a node
git-svn-id: file:///svn/toku/tokudb@34235 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
23a98e0de8
commit
bee23bfca9
1 changed files with 10 additions and 0 deletions
|
@ -253,6 +253,16 @@ test_serialize_leaf_check_msn(enum brtnode_verify_type bft) {
|
|||
|
||||
setup_dn(bft, fd, brt_h, &dn);
|
||||
|
||||
//
|
||||
// test that subtree estimates get set
|
||||
// rebalancing should make it 1 basement
|
||||
//
|
||||
assert(BP_SUBTREE_EST(&sn,0).nkeys == 3);
|
||||
assert(BP_SUBTREE_EST(dn,0).nkeys == 3);
|
||||
assert(BP_SUBTREE_EST(&sn,0).ndata == 3);
|
||||
assert(BP_SUBTREE_EST(dn,0).ndata == 3);
|
||||
|
||||
|
||||
assert(dn->thisnodename.b==20);
|
||||
|
||||
assert(dn->layout_version ==BRT_LAYOUT_VERSION);
|
||||
|
|
Loading…
Add table
Reference in a new issue