b23a7db377
Merge branch '0.4' into 0.5
2017-01-16 11:14:00 +03:00
ecb0ace49d
Fix an incorrect free() in list option handling.
2017-01-16 11:04:41 +03:00
a4ca87f64d
Add MemorySanitizer support to configure.ac. Use it in Travis CI when supported.
2017-01-16 10:46:09 +03:00
372bc69792
Check if ASAN is supported by the compiler.
2017-01-16 10:18:47 +03:00
d019abd180
Fix ASAN support in configure.ac.
2017-01-16 09:47:31 +03:00
52e075cb0c
Add AddressSanitizer support. Enable it by default in Travis CI builds.
2017-01-16 09:34:13 +03:00
60778578f8
Fixes #101 : Obscure ./configure error when pkg-config is not installed
...
Produce a more meaningful error message at autoconf time when pkg-config
is not installed on the host system.
2017-01-16 08:41:48 +03:00
4a90b2455a
Add missing sb_util.c.
2017-01-15 20:04:38 +03:00
3e5d8653dc
Align timer arrays to cache line boundary.
2017-01-15 20:03:28 +03:00
913a1215d3
Fix typo.
2017-01-15 19:22:13 +03:00
4ee53120ea
Make tls_lua_context actually a thread-local variable.
2017-01-15 19:19:57 +03:00
4a94259a7d
Replace ugly Lua context code with a thread-local variable.
2017-01-15 19:06:44 +03:00
d66c0cbce4
Exclude GCC/OSX from Travis CI build matrix.
2017-01-15 17:10:37 +03:00
378c49b275
Fix legacy OLTP regression tests.
2017-01-15 16:53:00 +03:00
84fed669cc
Move oltp_point_select.lua from sysbench/tests/db/ to sysbench/lua/.
...
Move oltp_point_select.lua to the sysbench/lua/ directory. Add basic
regression tests.
2017-01-15 16:45:38 +03:00
ebc2cb5420
Export prepared statements API to Lua.
...
Fix function name in an error message.
Fix prepared statements for string parameters.
2017-01-15 14:46:23 +03:00
1d434809ec
SQL API refactoring, cut #1 .
2017-01-14 01:29:57 +03:00
278a14fd9f
Merged LuaJIT upstream up to 8e5d7be.
2017-01-11 21:23:16 +03:00
b255f3e600
Rename global_histogram to sb_latency_histogram.
2017-01-07 08:43:12 +03:00
ef79b6629b
Merge ax_gcc_archflag.m4 from upstream.
2017-01-06 20:35:22 +03:00
de3003c2c5
Fixes #96 : sb_rand_uniq(1, oltp_table_size) generate duplicate value
...
Use ideas and code from https://github.com/preshing/RandomSequence to
generate a sequence of unique 32-bit numbers. Make the code thread-safe
as the corresponding Lua function in sysbench might be used in a
concurrent context.
2017-01-06 19:28:48 +03:00
95275d8ded
Add extern inline declarations for xoroshiro* functions.
2017-01-06 16:08:05 +03:00
f04e75429c
Fix xoroshiro128plus.h to use C99 inline.
2017-01-06 15:58:35 +03:00
c22f35f8ae
Fix AC_MSG_ERROR() usage.
2017-01-06 15:43:59 +03:00
e84cd1f89c
Check for pkg-config availability in configure.ac.
2017-01-06 15:41:49 +03:00
58e4e6e65c
Fix legacy API tests.
2017-01-06 15:10:29 +03:00
e5a886d3f7
Enforce a C99 compiler.
2017-01-06 14:34:06 +03:00
9e5507db1c
Merge branch '1.0'
2017-01-06 09:42:00 +03:00
99b0f4e260
Merge branch '0.5' into 1.0
2017-01-06 09:40:52 +03:00
3ff6f998cf
More Homebrew + PostgreSQL fixes for Travis.
2017-01-06 00:48:15 +03:00
e192f416f9
Fix Homebrew + PostgreSQL woes again.
2017-01-06 00:00:23 +03:00
ffc2782153
Fix portability by masking table options in api_sql.t.
2017-01-05 23:16:53 +03:00
2a523826dc
Use MySQL connection arguments in API tests.
2017-01-05 23:10:34 +03:00
5e94314e69
Specify DB driver explicitly in API tests.
2017-01-05 23:03:49 +03:00
e25e4d4864
Lua API regression tests.
2017-01-05 23:00:13 +03:00
bfec6bd3d6
Fix PRNG seeding in sb_rand_thread_init().
2017-01-05 10:07:08 +03:00
daa763adba
-ldl belongs to LDADD, not LDFLAGS.
2017-01-05 07:49:29 +03:00
51ff4d685d
Add -ldl and -rdynamic to LDFLAGS when building with system Luajit as well.
2017-01-05 07:44:44 +03:00
8ae115c63b
Add -rdynamic to linker flags on Linux for bundled LuaJIT.
2017-01-04 21:13:36 +03:00
6c00399b10
Convert Lua interface to random numbers to FFI.
2017-01-04 20:22:14 +03:00
80f5c6a8f7
Changed bounded PRNG functions to uint32_t for easier FFI integration.
2017-01-04 19:19:20 +03:00
3c89312c6d
Fix cmd_help.t.
2017-01-04 18:31:26 +03:00
0df9342413
Correct help text for --rand-seed.
2017-01-04 17:50:22 +03:00
06636afb5e
Fix Homebrew + PostgreSQL woes again.
2017-01-04 17:28:24 +03:00
3372469fe6
Merge branch '1.0'
2017-01-04 17:27:48 +03:00
b4092bfb64
Merge pull request #99 from paulmenzel/fix-variable-type
...
Correct variable type
2017-01-04 18:20:46 +04:00
611dbce9a4
sb_logger: Correct variable type
...
Fix the warning below by declaring the variable `tmp` as a (signed)
integer.
```
sb_logger.c: In function ‘oper_handler_init’:
sb_logger.c:489:11: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (tmp < 0 || tmp > 100)
^
```
Correct the type as `sb_get_value_int()` returns an integer.
2017-01-04 14:45:27 +01:00
ff26f0ed57
Fix Homebrew + PostgreSQL woes again.
2017-01-04 15:00:44 +03:00
8ecd804d74
Use sb_rand_uniform_double() + FP arithmetic to generate bounded random values.
2017-01-04 14:59:59 +03:00
8966e583ed
Convert PRNG API to 64 bit.
2017-01-03 22:25:07 +03:00