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

@ -66,10 +66,9 @@ SQL Lua API + PostgreSQL tests
301 400 0123456789 0123456789
--
1
ALERT: reconnect is not supported by the current driver
2
--
reconnects = 0
reconnects = 1
FATAL: Connection to database failed: could not translate host name "non-existing" to address: * (glob)
connection creation failed