Commit Graph

216 Commits

Author SHA1 Message Date
c704c9beb8 Null-merged the 0.4 branch 2009-05-28 19:50:59 +04:00
b359b0915e Moved EXTRA_LDFLAGS from sysbench_LDADD to sysbench_LDFLAGS where it should belong 2009-05-28 19:45:59 +04: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
1d11503695 Fixed configure.ac to look for lrand48 in AC_CHECK_FUNCS, not AC_CHECK_HEADERS 2009-05-28 19:11:54 +04:00
c123d1deff test commit 2009-05-21 05:52:09 -07:00
2fcffcf014 Look for DocBook XML catalog in multiple locations instead of using a hardcoded path 2009-05-19 18:24:39 +00:00
f6e66045aa Added alarm configure check 2009-05-19 18:22:58 +00:00
512d84fd27 Made forced shutdown optional via the --forced-shutdown switch and off by default. 2009-03-19 16:03:09 +00:00
57e7ea90a5 Added forced test shutdown to avoid endless execution when DB server freezes. 2009-03-16 07:42:49 +00: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
9edaef2391 Added definition of SB_MAX_RND back, was removed in the previous commit by mistake. 2008-12-29 10:23:15 +00:00
545a870654 Merged patches from Tim Cook:
- use lrand48() as random() is not thread-safe on most platforms
- use libumem/mtmalloc for memory allocation if available on the target platform
2008-12-18 11:46:27 +00:00
89f0f64c05 Got rid of unnecessary calloc() in db_driver.c by reusing a per-connection preallocated structure. 2008-12-17 20:00:08 +00:00
38010b6634 Moved $(EXTRA_LDFLAGS) before client libraries in the linker command line so that
additional libraries would take precedence.
2008-12-16 14:28:54 +00:00
63f94c39ca Removed scripts. They have not been maintained for a long time since no one seems to use them. 2008-12-09 13:08:02 +00:00
aed3875237 New --with-extra-ldflags switch in configure. One example where it might be useful:
'./configure --with-extra-ldflags=-all-static' will instruct libtool to try to 
create a static binary if supported by the target platform.
2008-12-09 13:00:06 +00:00
af95413bfa Applied a patch from Philip Guenther:
- assumed that pthread_create() and pthread_join() set errno.  They
   don't: they return the error value instead
2008-12-09 12:38:27 +00:00
64b3f1671a s/ifdef/if 2008-12-08 07:38:41 +00:00
4b25999044 Temporarily disabled a call to mysql_options() to workaround a bug the client library. 2008-12-08 07:38:12 +00:00
e3e2427655 Fixed commit_stmt for OLTP tests which was prepared as "LOCK TABLES" by mistake. 2008-12-02 15:48:24 +00:00
c6faf6837b Added a check to _setvbuf to configure. 2008-12-01 11:13:24 +00:00
df2339f2ac Display query text when mysql_stmt_execute() fails. 2008-11-29 16:13:14 +00:00
bd4b0c8ba8 Honour --max-requests for sequential fileio tests. Rewind to the first file in case all files are processed. 2008-11-18 13:43:32 +00:00
d933c6e28f Set stdout to non-buffered mode. 2008-11-18 13:42:01 +00:00
080ebfe37a Check if connection is valid in sb_lua_db_disconnect(). 2008-11-06 10:55:53 +00:00
d760f42b3d Removed xsl/ files from doc/Makefile.am as xsl/ now has its own Makefile.am 2008-11-05 13:30:50 +00:00
edffa94fef Added support for direct I/O on Solaris. 2008-11-05 13:26:48 +00:00
c966692683 Fixed Windows build. 2008-10-23 10:11:18 +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
68783a44db Raised the default thread stack size to 64K. 32K proved to be not enough on some platforms. 2008-10-02 17:04:09 +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
60d28bd8de Fixed Oracle and PostgreSQL to match changes in db_driver interface. 2007-06-17 14:05:07 +00:00
04a7c51667 Removed automatically generated files from version control.
Removed the old OLTP test.
2007-06-17 12:10:39 +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
03c21b0f1c Per-requested statistics are now displayed in milliseconds (patch by Jeremy Cole). 2007-06-07 17:44:11 +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
dbcb6cad02 Limit the size of bulk insert operations by query length instead of number of rows. 2007-01-12 18:27:59 +00:00
e643b65069 Increment other_ops on transaction commits as well 2007-01-11 18:55:02 +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
44e8f4b354 Removed --mysql-engine-trx 2006-06-30 14:11:31 +00:00