mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
Start testing {{{toku_brt_keyrange}}}.
There are 4 cases 1. flattened nodup (tested in this changeset) 1. unflattened nodup (untested) 1. flattened dupsort (untested) 1. unflattened dupsort (untested) git-svn-id: file:///svn/tokudb@3931 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
7828ced3a8
commit
b07dd27c62
3 changed files with 8 additions and 1 deletions
|
@ -3182,7 +3182,7 @@ static void toku_brt_keyrange_internal (BRT brt, CACHEKEY nodename, DBT *key, u_
|
||||||
}
|
}
|
||||||
prevcomp=comp;
|
prevcomp=comp;
|
||||||
}
|
}
|
||||||
if (prevcomp<0) {
|
if (prevcomp>0) {
|
||||||
*greater += BNC_SUBTREE_LEAFENTRY_ESTIMATE(node, i);
|
*greater += BNC_SUBTREE_LEAFENTRY_ESTIMATE(node, i);
|
||||||
} else {
|
} else {
|
||||||
toku_brt_keyrange_internal(brt, BNC_DISKOFF(node, i), key, less, equal, greater);
|
toku_brt_keyrange_internal(brt, BNC_DISKOFF(node, i), key, less, equal, greater);
|
||||||
|
@ -3199,6 +3199,10 @@ static void toku_brt_keyrange_internal (BRT brt, CACHEKEY nodename, DBT *key, u_
|
||||||
(*greater)--;
|
(*greater)--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
int rr = toku_unpin_brtnode(brt, node);
|
||||||
|
assert(rr == 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int toku_brt_keyrange (BRT brt, DBT *key, u_int64_t *less, u_int64_t *equal, u_int64_t *greater) {
|
int toku_brt_keyrange (BRT brt, DBT *key, u_int64_t *less, u_int64_t *equal, u_int64_t *greater) {
|
||||||
|
|
|
@ -73,4 +73,6 @@ enum brt_header_flags {
|
||||||
TOKU_DB_DUPSORT = 2,
|
TOKU_DB_DUPSORT = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int toku_brt_keyrange (BRT brt, DBT *key, u_int64_t *less, u_int64_t *equal, u_int64_t *greater);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -57,6 +57,7 @@ REGRESSION_TESTS = \
|
||||||
cachetable-test2 \
|
cachetable-test2 \
|
||||||
fifo-test \
|
fifo-test \
|
||||||
list-test \
|
list-test \
|
||||||
|
keyrange \
|
||||||
log-test \
|
log-test \
|
||||||
log-test2 \
|
log-test2 \
|
||||||
log-test3 \
|
log-test3 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue