sysbench-tpcc
sysbench-tpcc copied to clipboard
Payment choose warehouse incorrectly
According to the TPCC spec, for payment transaction, the warehouse choosing rule is as follows:

So for any worker, the home warehouse should be fixed across a full run.
However in the code https://github.com/Percona-Lab/sysbench-tpcc/blob/master/tpcc_run.lua#L226, the home warehouse is selected randomly for each time we start a payment transaction.
I guess this might be a different implementation to TPC-C spec