Close prepared statements in OLTP scripts.

This commit is contained in:
Alexey Kopytov
2017-01-30 14:24:05 +03:00
parent 419be9f8ea
commit 61a167354b
3 changed files with 17 additions and 0 deletions

View File

@ -53,6 +53,10 @@ function thread_init()
thread_id = sysbench.tid % sysbench.opt.num_threads
end
function thread_done()
stmt:close()
end
function event()
-- To prevent overlapping of our range queries we need to partition the whole
-- table into num_threads segments and then make each thread work with its