Closed sdressler closed 4 years ago
Not sure about this one, but in tpcc_run.lua lines 461 to 463 there is:
tpcc_run.lua
if namecnt % 2 == 0 then namecnt = namecnt + 1 end
In the standard however, the example transaction states as
if (namecnt%2) namecnt++; / / Locate midpoint customer
And therefore, I believe, it must be if namecnt % 2 == 1 then to increment if namecnt is uneven.
if namecnt % 2 == 1 then
namecnt
If my observation is correct, then I am happy to open a PR.
I think you are right. I've made changes to reflect it
Not sure about this one, but in
tpcc_run.lua
lines 461 to 463 there is:In the standard however, the example transaction states as
And therefore, I believe, it must be
if namecnt % 2 == 1 then
to increment ifnamecnt
is uneven.If my observation is correct, then I am happy to open a PR.