Percona-Lab / sysbench-tpcc

Sysbench scripts to generate a tpcc-like workload for MySQL and PostgreSQL
Apache License 2.0
292 stars 104 forks source link

Question about other_ware function #49

Open AlanHN opened 1 year ago

AlanHN commented 1 year ago

Not really understand other_ware in tpcc_run.lua.

https://github.com/Percona-Lab/sysbench-tpcc/blob/585e2b8af327d35866aed7e56837c2134d8835a9/tpcc_run.lua#L24C1-L36C4

I think this code will finally generate a warehouse_id exactly as same as input, which is opposite to the comment over the code.