Commit 8d341cca authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:5027] fix a really stupid error (write past the end of an array)

git-svn-id: file:///svn/toku/tokudb@44380 c7de825b-a66e-492c-adef-691d508d4ae1
parent ef299236
...@@ -569,7 +569,7 @@ static int random_put_in_db(DB *db, DB_TXN *txn, ARG arg, void *stats_extra) { ...@@ -569,7 +569,7 @@ static int random_put_in_db(DB *db, DB_TXN *txn, ARG arg, void *stats_extra) {
for (i = 0; i < arg->cli->txn_size; ++i) { for (i = 0; i < arg->cli->txn_size; ++i) {
rand_key.key = randu64(arg->random_data); rand_key.key = randu64(arg->random_data);
if (arg->cli->interleave) { if (arg->cli->interleave) {
rand_key.i[4] = arg->thread_idx; rand_key.i[3] = arg->thread_idx;
} else { } else {
rand_key.i[0] = arg->thread_idx; rand_key.i[0] = arg->thread_idx;
} }
...@@ -623,7 +623,7 @@ static int UU() serial_put_op(DB_TXN *txn, ARG arg, void *operation_extra, void ...@@ -623,7 +623,7 @@ static int UU() serial_put_op(DB_TXN *txn, ARG arg, void *operation_extra, void
for (i = 0; i < arg->cli->txn_size; ++i) { for (i = 0; i < arg->cli->txn_size; ++i) {
rand_key.key = extra->current++; rand_key.key = extra->current++;
if (arg->cli->interleave) { if (arg->cli->interleave) {
rand_key.i[4] = arg->thread_idx; rand_key.i[3] = arg->thread_idx;
} else { } else {
rand_key.i[0] = arg->thread_idx; rand_key.i[0] = arg->thread_idx;
} }
......
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