Commit 02552ebb authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5368 fix assertion to match length


git-svn-id: file:///svn/toku/tokudb@48378 c7de825b-a66e-492c-adef-691d508d4ae1
parent 80655a83
...@@ -70,7 +70,7 @@ int test_main (int argc, char * const argv[]) { ...@@ -70,7 +70,7 @@ int test_main (int argc, char * const argv[]) {
r = snapshot_cursor->c_get(snapshot_cursor, &curr_key, &curr_val, DB_NEXT); CKERR(r); r = snapshot_cursor->c_get(snapshot_cursor, &curr_key, &curr_val, DB_NEXT); CKERR(r);
assert(((char *)(curr_key.data))[0] == 'a'); assert(((char *)(curr_key.data))[0] == 'a');
assert((*(uint32_t *)(curr_val.data)) == i); assert((*(uint32_t *)(curr_val.data)) == i);
assert(curr_key.size == 4); assert(curr_key.size == 2);
assert(curr_val.size == 4); assert(curr_val.size == 4);
snapshot_cursor->c_close(snapshot_cursor); snapshot_cursor->c_close(snapshot_cursor);
} }
...@@ -91,7 +91,7 @@ int test_main (int argc, char * const argv[]) { ...@@ -91,7 +91,7 @@ int test_main (int argc, char * const argv[]) {
CKERR(r); CKERR(r);
assert(((char *)(curr_key.data))[0] == 'a'); assert(((char *)(curr_key.data))[0] == 'a');
assert((*(uint32_t *)(curr_val.data)) == (num_read_txns - 1)); assert((*(uint32_t *)(curr_val.data)) == (num_read_txns - 1));
assert(curr_key.size == 4); assert(curr_key.size == 2);
assert(curr_val.size == 4); assert(curr_val.size == 4);
read_uncommitted_cursor->c_close(read_uncommitted_cursor); read_uncommitted_cursor->c_close(read_uncommitted_cursor);
} }
......
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