memloadgen
This commit is contained in:
parent
18339fb109
commit
b5be9c38fe
@ -40,7 +40,8 @@ memload_generator::worker_thrd(void *_tinfo)
|
||||
if (cur_offset + tinfo->opts->transaction_size > tinfo->opts->buffer_size) {
|
||||
cur_offset = 0;
|
||||
}
|
||||
memcpy((char *)tinfo->from_buffer + cur_offset, (char *)tinfo->to_buffer, tinfo->opts->transaction_size);
|
||||
|
||||
memcpy((char *)tinfo->from_buffer + cur_offset, (char *)tinfo->to_buffer + cur_offset, tinfo->opts->transaction_size);
|
||||
tinfo->num_trans.fetch_add(1);
|
||||
|
||||
if (tinfo->reset_ts.load(std::memory_order_relaxed)) {
|
||||
|
Loading…
Reference in New Issue
Block a user