diff options
author | unknown <brian@piggy.tangent.org> | 2007-08-20 13:03:50 -0700 |
---|---|---|
committer | unknown <brian@piggy.tangent.org> | 2007-08-20 13:03:50 -0700 |
commit | c8b9315db3fbdc0a26097c3451ebe89e32c49d45 (patch) | |
tree | 2b1cf296c75193a5be9e05f491d127ff7a4aea45 /client/mysqlslap.c | |
parent | 8d025792a5cbb8a1ed5361116d5d4f5d1db10a56 (diff) | |
download | mariadb-git-c8b9315db3fbdc0a26097c3451ebe89e32c49d45.tar.gz |
Extending tests for detach (found a memory issue in it, this fixes that and now tests it).
client/mysqlslap.c:
Fix memory allocation
mysql-test/t/mysqlslap.test:
Extend test for --detach
Diffstat (limited to 'client/mysqlslap.c')
-rw-r--r-- | client/mysqlslap.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 43d8b1b1560..2811011a1ef 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -1804,6 +1804,13 @@ limit_not_met: { mysql_close(mysql); + if (!(mysql= mysql_init(NULL))) + { + fprintf(stderr,"%s: mysql_init() failed ERROR : %s\n", + my_progname, mysql_error(mysql)); + exit(0); + } + if (slap_connect(mysql)) goto end; } |