From 30d3e8feec8c6ef43d151bfd47336bbce63dffcc Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 20 Aug 2007 13:03:50 -0700 Subject: 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 --- client/mysqlslap.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/mysqlslap.c') 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; } -- cgit v1.2.1