Skip to content

Commit

Permalink
select_random_ranges.lua: use param "range_size" as cnt limit of fetc…
Browse files Browse the repository at this point in the history
…h table
  • Loading branch information
rockeet committed Sep 28, 2022
1 parent 5b9dc3c commit 3721c84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lua/select_random_ranges.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ function thread_init()
stmt = con:prepare(string.format([[
SELECT sum(length(c))
FROM sbtest1
WHERE %s]], ranges))
WHERE %s limit %d]], ranges,
sysbench.cmdline.options.range_size))
end

params = {}
Expand Down

0 comments on commit 3721c84

Please sign in to comment.