89ab44d50e
Fix #119 (oltp_insert.lua + --auto-inc=0 fails)
...
Fix oltp_insert.lua when run with --auto-inc disabled. Add regression tests.
2017-03-12 10:45:03 +03:00
9bd33c7e41
Fix grammar in help text for --skip-trx.
2017-02-28 12:30:10 +03:00
1d40ad0e1c
Optimize random string generation in OLTP_RW.
...
Avoid Lua string management in OLTP_RW by introducing a new sql_param
method: set_rand_str(). Which calls sb_rand_str() in C code with a given
template string and a pre-allocated result buffer. In oltp_common.lua,
use set_rand_str() instead of allocating a new Lua string each time we
need a random string parameter for a prepared statement.
2017-02-25 19:57:55 +03:00
57b6f9d2b6
Correct a diagnostic message on index creation.
2017-02-08 22:46:28 +03:00
9c87d39700
Grammar fixes in a comment.
2017-02-08 21:45:51 +03:00
40c14789aa
Export mysql_drv_reconnect() to Lua SQL API.
2017-02-02 10:59:51 +03:00
9fdec9dccf
Rename sysbench.option_defs to sysbench.cmdline.options.
2017-02-01 19:31:53 +03:00
4a755b1c5d
Make the default intermediate reports format a little more terse.
2017-02-01 18:57:37 +03:00
7f56e219f7
Rename --num-threads to --threads.
...
Accept the old name with a warning for compatibility.
2017-02-01 17:42:39 +03:00
788fcbb30b
Rename --max-requests to --events, --max-time to --time.
...
Print warnings if old names are used, but accept them for compatibility.
2017-02-01 17:20:22 +03:00
443a60bd28
Export histogram API to Lua.
2017-01-31 20:51:47 +03:00
5ad977b50f
Fix typo in sysbench.compat.lua.
2017-01-31 13:44:04 +03:00
a734561fa5
Check for command in OLTP scripts.
...
Check for the required command argument in oltp_common.lua and provide
list of supported commands when missing.
2017-01-31 13:35:41 +03:00
094c15d555
Make sysbench.cmdline.argv available from the master thread.
2017-01-31 13:21:57 +03:00
d3e28b3dc2
Use a proper method to disconnect a connection.
2017-01-30 17:44:19 +03:00
4eff9c4dc1
Close connections explicitly in OLTP scripts.
2017-01-30 17:29:47 +03:00
78ea2f6a5c
Close connection explicitly in bulk_insert.lua.
2017-01-30 17:16:21 +03:00
b9dab8c0f5
Also close BEGIN/COMMIT statements in oltp_common.lua.
2017-01-30 14:44:34 +03:00
61a167354b
Close prepared statements in OLTP scripts.
2017-01-30 14:24:05 +03:00
591c588fa7
Implement custom report hooks. Add CSV and JSON reporters as examples.
2017-01-29 23:46:43 +03:00
1cf5b33eda
Move counters code from db_driver.c to sb_counter.c.
2017-01-29 13:45:26 +03:00
12e56538f3
Parallel 'prepare' and 'prewarm' (MySQL-only) commands for OLTP benchmarks.
2017-01-28 17:55:29 +03:00
49aa0b4322
Fixes #78 : better error hints for missing help command
...
Now if the help command is specified for a script, sysbench first check
if the script impelements a custom help command, and calls it. If no
custom command is defined, it checks whether the script declares any
command line options, in which case it prints their description. If
neither the help() function nor an option declaration is available,
sysbench prints an error message.
2017-01-28 16:20:29 +03:00
49016568ba
Implement custom commands + parallel custom commands.
2017-01-28 15:45:16 +03:00
c9155686b7
Fix syntax error in sysbench.lua.
2017-01-27 17:59:10 +03:00
a5b7f22275
Simplify condition in sysbench.lua:thread_run().
2017-01-27 16:05:29 +03:00
8c4f6f09d5
Remove unnecessary 'local' declarations in oltp_common.lua.
2017-01-27 15:41:25 +03:00
b8745c8a22
Make bundled OLTP Lua scripts executable, add hashbangs.
2017-01-27 14:24:43 +03:00
06d4f99cb6
Rename the 'sysbench' subdirectory to 'src'.
2017-01-27 09:39:28 +03:00