Commit 64f97e27 authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

refs #5351 fix a bug where we lose 4 bytes of the key. this is important when...

refs #5351 fix a bug where we lose 4 bytes of the key. this is important when your random number generator is generating 8 bytes of randomness but you're only benefitting from 4 bytes of it.


git-svn-id: file:///svn/toku/tokudb@49751 c7de825b-a66e-492c-adef-691d508d4ae1
parent 73e855e2
...@@ -2230,8 +2230,8 @@ UU() stress_uint64_dbt_cmp(DB *db, const DBT *a, const DBT *b) { ...@@ -2230,8 +2230,8 @@ UU() stress_uint64_dbt_cmp(DB *db, const DBT *a, const DBT *b) {
assert(a->size >= sizeof(uint64_t)); assert(a->size >= sizeof(uint64_t));
assert(b->size >= sizeof(uint64_t)); assert(b->size >= sizeof(uint64_t));
int x = *(uint64_t *) a->data; uint64_t x = *(uint64_t *) a->data;
int y = *(uint64_t *) b->data; uint64_t y = *(uint64_t *) b->data;
if (x < y) { if (x < y) {
return -1; return -1;
......
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