Skip to content

Commit

Permalink
namecnt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimtk authored Sep 21, 2020
1 parent f9f581e commit d2df271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpcc_run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function payment()
-- AND c_last = :c_last
-- ORDER BY c_first;

if namecnt % 2 == 0 then
if namecnt % 2 == 1 then
namecnt = namecnt + 1
end

Expand Down Expand Up @@ -458,7 +458,7 @@ function orderstatus()
AND c_last='%s' ORDER BY c_first]])
:format(table_num, w_id, d_id, c_last ))

if namecnt % 2 == 0 then
if namecnt % 2 == 1 then
namecnt = namecnt + 1
end
for i = 1, (namecnt / 2 ) + 1 do
Expand Down

0 comments on commit d2df271

Please sign in to comment.