OLTP scripts: add --reconnect option.

oltp_*.lua scripts now support the --reconnect=N option. When specified,
sysbench will reconnect after every N events.

Fixes GH-90.
This commit is contained in:
Alexey Kopytov
2018-12-11 23:22:56 +03:00
parent 8c8122080c
commit a245b2f531
23 changed files with 80 additions and 2 deletions

View File

@ -74,4 +74,6 @@ function event()
end
stmt:execute()
check_reconnect()
end