Skip to content

Commit 58f7db7

Browse files
author
VadimTk
committed
Improve check
1 parent a691e56 commit 58f7db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tpcc_check.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function check_tables(drv, con, warehouse_num)
191191
local pass9 = 1
192192
for table_num = 1, sysbench.opt.tables do
193193
-- print(string.format("Checking tables: %d for warehouse: %d\n", table_num, warehouse_num))
194-
rs = con:query(string.format("SELECT COUNT(*) FROM (select d_id,d_w_id,sum(d_ytd) s1 from district%d group by d_id,d_w_id) d,(select h_d_id,h_w_id,sum(h_amount) s2 from history%d group by h_d_id, h_w_id) h WHERE h_d_id=d_id AND d_w_id=h_w_id and d_w_id=%d and s1<>s2",table_num, table_num, warehouse_num))
194+
rs = con:query(string.format("SELECT COUNT(*) FROM (select d_id,d_w_id,sum(d_ytd) s1 from district%d group by d_id,d_w_id) d,(select h_d_id,h_w_id,sum(h_amount) s2 from history%d WHERE h_w_id=%d group by h_d_id, h_w_id) h WHERE h_d_id=d_id AND d_w_id=h_w_id and d_w_id=%d and s1<>s2",table_num, table_num, warehouse_num, warehouse_num))
195195

196196
for i = 1, rs.nrows do
197197
row = rs:fetch_row()

0 commit comments

Comments
 (0)