diff options
author | unknown <SergeyV@selena.> | 2006-01-20 18:20:03 +0300 |
---|---|---|
committer | unknown <SergeyV@selena.> | 2006-01-20 18:20:03 +0300 |
commit | 94ea98832aeff8854090ddb6d64886b648ddccc7 (patch) | |
tree | 504a45bb4767dbf2baf1080745dc5fa98d50d059 /client | |
parent | 84c3b534a0805376681049eb84da68c9bdf17990 (diff) | |
download | mariadb-git-94ea98832aeff8854090ddb6d64886b648ddccc7.tar.gz |
Post review updates for win32 port of mysqlslap
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqlslap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c index db5779387f7..2893f4b6f47 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -98,9 +98,6 @@ TODO: #define srandom srand #define random rand #define snprintf _snprintf -#define USE_THREADS_DEFAULT TRUE -#else -#define USE_THREADS_DEFAULT FALSE #endif #ifdef HAVE_SMEM @@ -248,7 +245,10 @@ int main(int argc, char **argv) unsigned long long client_limit; statement *eptr; - //DBUG_ENTER("main"); +#ifdef __WIN__ + opt_use_threads= 1; +#endif + MY_INIT(argv[0]); /* Seed the random number generator if we will be using it. */ @@ -478,7 +478,7 @@ static struct my_option my_long_options[] = {"use-threads", OPT_USE_THREADS, "Use pthread calls instead of fork() calls (default on Windows)", (gptr*) &opt_use_threads, (gptr*) &opt_use_threads, 0, - GET_NO_ARG, NO_ARG, USE_THREADS_DEFAULT, 0, 0, 0, 0, 0}, + GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, #include <sslopt-longopts.h> #ifndef DONT_ALLOW_USER_CHANGE {"user", 'u', "User for login if not current user.", (gptr*) &user, |