Commit Graph

41 Commits

Author SHA1 Message Date
1b5e5619cc Fix barrier error reporting. 2016-03-18 00:17:36 +03:00
1c812ad6dd Fixes #17: Lua script without DB access crashes sysbench.
Only call sb_percentile_update() if the DB driver has been initialized.
2016-02-23 11:58:28 +08:00
288aec57a1 Update copyrights and FSF address. 2016-02-21 23:39:18 +08:00
858ee03fd3 Fixed Windows builds by removing the __attribute__((unused)) construct. 2015-10-13 11:47:49 +03:00
2fd08b7872 Fixed --validate for multi-treaded fileio test.
Patch contributed by Dwight Engen <dwight.engen@oracle.com>
2015-10-11 15:07:57 +03:00
6166b794a5 Allow command line options from config file. 2015-07-08 16:38:45 +02:00
f2ae0768bf Bug #1403699: sysbench crash at script_lua.c:860
Added protection for syntax errors in Lua scripts when code in the
top-level chunk (i.e. not in one of the functions) tries to access the
database driver.
2014-12-22 14:29:57 +03:00
289b1c5f65 Introduced a new option called --mysql-ignore-errors, which accepts a
comma separated list of numeric errors that should be ignored. If
sysbench encounters an ignored error indicating that the server is no
longer available (i.e. one of CR_SERVER_LOST, CR_SERVER_GONE_ERROR,
CR_TCP_CONNECTION, or CR_SERVER_GONE_ERROR), it automatically
reconnects. Otherwise it just restarts the current transaction.

A user can also specify --mysql-ignore-errors=all, in which case all
errors will be ignored.

There are also 2 new counters: ‘reconnects’ and ‘errors’, which are
reported in both interval and final statistics.
2014-10-18 22:22:28 +04:00
067134b763 Manual merge from 0.4. 2011-07-21 20:45:22 +04:00
1d1073b829 Manual merge from 0.4. 2011-07-19 18:49:27 +04:00
d2788a00c6 Make statistics available in case we use db_query instead of db_execute in scripts 2011-04-27 09:30:11 -07:00
87222b57f4 Initialize sb_lua_ctxt_key to avoid a warning when building with Sun Studio. 2010-12-24 16:46:33 +03:00
661757974f * Exported sb_rand_uniform(), sb_rand_gaussian() and sb_rand_special()
to Lua.

* Fixed sb_fileio.c broken by an incorrect merge from 0.4.
2010-12-23 09:48:32 +03:00
b93fffdae3 Fixed an incorrect merge.
More compilation warnings fixed.
2010-11-01 12:37:19 +03:00
652eb760c3 Merge lp:~elambert/sysbench/trunk_drizzle_merge with some modifications. 2009-09-21 23:25:59 +04:00
b9d0556c84 Merged all in drizzle sysbench changes with the exception of those changes
made to the sb_oltp.c and sb_oltp.h files (those changes will be merged at 
a later date).
  -added drizzle support to lua tests
  -removed some dead code
  -updated autotools system
  -Added extensions.m4
  -Removed manual.html - it's generated
  -Turned on warnings. Made sysbench compile with them on
  -Added support for building with libdrizzle
  -Added run.sh as example of how to run drizzle sys-bench
  -drv drizzle works with multi-thread
  -drv_drizzle: misc. fixes
  -drv_drizzle: fix all four buffering forms
  -Checking for error codes using new clean method.
  -Check that new constant exists in autoconf
  -drv_drizzle: Turned unsigned ints back off
  -drv_drizzle: Updated error fetching code
  -drv_drizzle: Removed blocking option - makes no sense. Cleaned up option help text
  -Up to date with latest libdrizzle changes
  -fixed some solaris build issues
  -Split acinclude into multiple files in m4/ dir
  -downgraded autoconf
  -Removed -Wlogical-op, it's only in newer GCC, and it's not important enough to impose GCC version restrictions for
  -Removed need for drizzled install for libdrizzle build
  -Fixed solaris build issues
  -Fixed new libdrizzle result processing
  -Added the all_need_caps explicitly to drv_mysql
  -Added capability for libdrizzle
2009-06-10 16:43:32 -07:00
b773e3146b Since Bazaar does not allow merging of two unrelated branches,
created the branch for the old 0.4 code base from trunk, then
reconciled with 0.4 manually (the patchwill be null-merged into 
trunk).
2009-05-28 19:25:12 +04:00
4c2e5fdcb2 Fixed a bug with preparation of statements w/o bound parameters. 2009-02-26 10:35:44 +00:00
946f88aa91 Added a missing call to db_close() in sb_lua_db_close(). 2009-02-20 16:02:02 +00:00
b1a077bc24 Pop the function return value from the stack to prevent memory leak. 2009-02-02 17:29:48 +00:00
78f5026342 Removed the __gc method for the result set userdata since it's no longer needed after removing per-statement calloc() in db_execute(). 2008-12-29 13:15:57 +00:00
080ebfe37a Check if connection is valid in sb_lua_db_disconnect(). 2008-11-06 10:55:53 +00:00
bc8716e622 Fixed bug #2174795. Fixed lua_error() calls without putting a message on stack in script_lua.c 2008-10-18 12:56:40 +00:00
9fb57169bf Fixed a race condition around DB library initialization in script_lua.c
Minor cleanups.
2008-10-18 11:42:53 +00:00
8184df67af Replaced the fix for race condition in script_lua.c with the pthread_once() patch by Vladislav Vaintroub. 2008-09-30 13:55:41 +00:00
03bc740ad5 Fixed a race condition around DB library initialization in script_lua.c
Minor cleanups.
2008-09-30 10:01:53 +00:00
2d63c9073d Initial Windows support. Huge thanks to Vladislav Vaintroub for the patch. 2008-09-29 16:22:42 +00:00
04d168dd50 Removed spurious warnings on mysql_store_result().
Minor logging fixes.
2007-06-17 18:27:05 +00:00
5d46bc40bc Removed hard-coded table engines from the MySQL driver.
Removed automatically generated files from version control.
2007-06-17 12:08:24 +00:00
796656b068 Do not crash on 'help' command passed to a Lua script. Call the 'help' function from the script if it is available. 2007-06-17 10:51:29 +00:00
6ff3fff6ac Fixed memory corruption bug in sb_lua_db_execute(). 2007-06-08 06:49:19 +00:00
a1bb9a5148 Fixed memory leaks in Lua code 2007-05-16 14:12:45 +00:00
c50c2fe68f Added deadlock handling to lua scripts. 2007-03-21 14:23:05 +00:00
0063c46021 Added db_bind_result() to the LUA API
Handle ER_CHECKREAD in the same way as deadlocks in the MySQL driver
2007-01-11 12:57:06 +00:00
bb687c266e Fixed bug with --max-requests=0 2006-06-28 11:21:56 +00:00
3bdf37c3fb Fixed build issues 2006-06-26 17:26:45 +00:00
d61c86201a Merged Lua into the main source tree 2006-06-26 17:15:32 +00:00
3d64893fce Merged Lua into the main source tree 2006-06-26 17:12:57 +00:00
9ab727dece Added automatical statistics in DB API 2006-06-25 18:13:02 +00:00
f4245ee265 Added sb_rand_str() 2006-06-15 13:14:04 +00:00
13052e3fba Added preliminary scripting support 2006-06-09 15:42:45 +00:00