Skip to content

Commit

Permalink
src/lua: skip creating covered index for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
cyliu0 committed Nov 9, 2023
1 parent 751c648 commit 3dcc87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/oltp_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ CREATE TABLE sbtest%d(
con:query(string.format("CREATE INDEX k_%d ON sbtest%d(k)",
table_num, table_num))
end
if (not sysbench.opt.skip_ddl) and sysbench.opt.create_covered_secondary then
if (not sysbench.opt.skip_ddl) and sysbench.opt.create_covered_secondary and drv:name() ~= "mysql" then
print(string.format("Creating a covered secondary index on 'sbtest%d'...",
table_num))
con:query(string.format("CREATE INDEX ck_%d ON sbtest%d(k) include(id, c, pad)",
Expand Down

0 comments on commit 3dcc87b

Please sign in to comment.