03df5c0a6f
Fix error message when a TCP connection fails.
2016-02-25 12:03:53 +08:00
7414d441fe
Fix --mysql-host broken by the previous commit.
2016-02-25 11:44:06 +08:00
9922dd99ed
Allow --mysql-port to be a list.
...
Allow --mysql-port to be a list rather than just a single value similar
to --mysql-host. When both --mysql-host and --mysql-port are specified
as lists of values, when creating connections first iterate on ports
with the current host, then move to the next host in the list.
2016-02-25 11:01:58 +08:00
1c9ddea0e2
Properly initialize thread-local RNG state.
2016-02-24 21:34:19 +08:00
a7d9d4409b
Add a missing #include.
2016-02-24 16:07:21 +08:00
e75ca57ee0
Add a missing '\'.
2016-02-24 16:01:38 +08:00
e24a028409
Fixes #18 : lrand48() is not thread-safe
...
and
LP#1412488: lrand48() doesn't scale well on highly concurrent platforms
Use re-entrant versions of standard RNG functions with thread-local
states. Seed thread-local RNGs from the RNG of the thread invoking
sb_thread_create() (i.e. the main thread).
The main thread RNG is now always seeded from timer, unless --rand-seed
is specified. Which obsoletes --rand-init, so it has been removed.
2016-02-24 00:26:30 +08:00
3e0a29c57f
Merge branch '0.5' into 1.0
2016-02-23 15:14:47 +08: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
c451cd963b
Update GPLv2 text in COPYING with the current version from https://gnu.org/licenses/gpl-2.0.txt .
2016-02-21 23:39:08 +08:00
909bc10551
Bump version for the 1.0 branch and fix email address to report bugs.
2016-02-21 21:18:54 +08:00
546349768a
Fix mutex_get_request() signature.
2016-02-21 21:15:42 +08:00
85889df1ce
Print the number of actually running threads instead of the configured
...
--num-threads value for intermediate reports. This can make a big
difference with network benchmarks to diagnose TCP-related issues like
SYN flood protection, throttling, backlog issues, etc.
2015-11-26 11:52:51 +08:00
d4a30a331a
Minor cleanups in bulk_insert.lua.
2015-11-05 19:08:37 +03:00
d6699439d8
Some minor improvements to bulk_insert.lua
2015-11-03 18:47:20 +03:00
43cb35e248
In the MySQL driver, print error number and text before the query text, as printing them after complicates troubleshooting for really long queries.
2015-11-03 17:08:35 +03:00
e55a12b88c
Fix table creation/removal loop ranges.
2015-11-03 16:41:02 +03:00
aa52781b7c
Moved table creation to the prepare method.
2015-11-03 16:37:48 +03:00
f325955b0c
Use DROP TABLE IF EXISTS when cleaning up.
2015-11-03 16:25:23 +03:00
057e143b27
Use mysql_config --libs_r
instead of mysql_config --libs | sed
.
2015-11-03 00:11:51 +03:00
0bf454200d
Bulk insert test.
2015-11-02 23:14:29 +03:00
064736860b
Properly use the PostgreSQL sequence in insert.lua when oltp_auto_inc is on.
2015-10-13 23:08:55 +03:00
5aa550c00f
Fixed a compiler warning by removing a stray struct initializer.
2015-10-13 22:51:06 +03:00
858ee03fd3
Fixed Windows builds by removing the __attribute__((unused)) construct.
2015-10-13 11:47:49 +03:00
f7629417d0
Fixed unconditional directio() call on Solaris: do it only when --file-extra-flags=direct.
2015-10-12 17:36:37 +03:00
148b0988a8
Use fcntl(..., F_FULLFSYNC) instead of fdatasync() on OSX to avoid a
...
compiler warning.
2015-10-11 15:53:14 +03:00
0ed56dd112
Fixed *_get_request() functions in sb_memory.c and sb_threads.c to match
...
the new interface defined in sysbench.h
2015-10-11 15:16:17 +03:00
6007568e65
Fixed a couple of compiler warnings in crc32.c
2015-10-11 15:13:18 +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
6d813225e6
Merge pull request #7 from olafdietsche/feature-config-file
...
Feature config file
2015-10-02 10:52:26 +03:00
eaf238bbce
Merge branch '0.4' into 0.5
2015-10-02 10:44:36 +03:00
c3b0aa04e2
Addendum to the fix for #10 : also ignore duplicate key errors, as they
...
are legal for PostgreSQL in the OLTP workload due to its transaction
isolation implementation specifics.
2015-10-02 10:29:37 +03:00
ccc252f43c
Fixed #3 in the 0.4 branch.
2015-10-02 10:26:45 +03:00
a5b53d03d5
Merge branch '0.4' into 0.5
2015-09-30 19:23:19 +03:00
3d63e69a69
More descriptive configure message when MySQL client library is not found.
2015-09-30 19:22:05 +03:00
e3165acb64
Merge branch '0.4' into 0.5
2015-09-23 17:17:17 +03:00
76fc3ef79e
Fixes #10 : oltp: pgsql query execution failed
...
Handle deadlocks correctly in the PostgreSQL driver, i.e. return
SB_DB_ERROR_DEADLOCK to the upper layer to restart the transaction and
increment the deadlocks counter.
2015-09-23 16:59:04 +03:00
ab36a80c53
Merge branch '0.4' into 0.5
2015-09-23 15:56:10 +03:00
26abf0c893
Fix wrong format string in error reporting.
2015-09-23 15:51:48 +03:00
8de145fcd3
Typo fix.
2015-09-10 14:58:27 +03:00
790e73a306
Fix a couple of benign compiler warnings in runner_thread().
2015-09-09 14:20:40 +03:00
b1c56b267d
Fix ‘set but not used’ warning in db_disconnect().
2015-09-09 13:53:58 +03:00
c8c50ac65a
Fixed the annoying “AC_COMPILE_IFELSE before AC_USE_SYSTEM_EXTENSIONS”
...
Autoconf warning.
2015-08-23 23:09:22 +05:00
6166b794a5
Allow command line options from config file.
2015-07-08 16:38:45 +02:00
95eab63787
Fix const correctness.
2015-07-08 16:13:08 +02:00
5033c33627
Overwrite values instead of appending (see also set_option()).
2015-07-08 16:10:35 +02:00
0257f50738
Merge pull request #6 from olafdietsche/issue-endless-loop
...
Issue endless loop
2015-07-08 08:52:17 +03:00
bf83ea12bd
Skip trailing whitespace when reading config file.
2015-07-08 04:52:01 +02:00
d5cd06e3cb
Fix endless loop when reading a config file.
2015-07-07 15:16:08 +02:00