memloadgen

This commit is contained in:
oscar 2022-11-16 15:37:39 -05:00
parent 18339fb109
commit b5be9c38fe

View File

@ -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)) {