Commit 5be79863 authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:4355] Cast int64_t to uint64_t for comparison to accommodate change in status type. Refs #4355.

git-svn-id: file:///svn/toku/tokudb@38541 c7de825b-a66e-492c-adef-691d508d4ae1
parent 79b48098
...@@ -95,10 +95,10 @@ run_test (void) { ...@@ -95,10 +95,10 @@ run_test (void) {
} }
toku_cachetable_get_status(ct, &ct_stat); toku_cachetable_get_status(ct, &ct_stat);
assert(ct_stat.size_nonleaf == expect.nonleaf_size); assert(ct_stat.size_nonleaf == (uint64_t) expect.nonleaf_size);
assert(ct_stat.size_leaf == expect.leaf_size); assert(ct_stat.size_leaf == (uint64_t) expect.leaf_size);
assert(ct_stat.size_rollback == expect.rollback_size); assert(ct_stat.size_rollback == (uint64_t) expect.rollback_size);
assert(ct_stat.size_cachepressure == expect.cache_pressure_size); assert(ct_stat.size_cachepressure == (uint64_t) expect.cache_pressure_size);
void *big_v; void *big_v;
long big_s; long big_s;
...@@ -117,10 +117,10 @@ run_test (void) { ...@@ -117,10 +117,10 @@ run_test (void) {
usleep(2*1024*1024); usleep(2*1024*1024);
toku_cachetable_get_status(ct, &ct_stat); toku_cachetable_get_status(ct, &ct_stat);
assert(ct_stat.size_nonleaf == expect.nonleaf_size); assert(ct_stat.size_nonleaf == (uint64_t) expect.nonleaf_size);
assert(ct_stat.size_leaf == expect.leaf_size); assert(ct_stat.size_leaf == (uint64_t) expect.leaf_size);
assert(ct_stat.size_rollback == expect.rollback_size); assert(ct_stat.size_rollback == (uint64_t) expect.rollback_size);
assert(ct_stat.size_cachepressure == expect.cache_pressure_size); assert(ct_stat.size_cachepressure == (uint64_t) expect.cache_pressure_size);
toku_cachetable_verify(ct); toku_cachetable_verify(ct);
r = toku_cachefile_close(&f1, 0, FALSE, ZERO_LSN); assert(r == 0 && f1 == 0); r = toku_cachefile_close(&f1, 0, FALSE, ZERO_LSN); assert(r == 0 && f1 == 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment