summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2010-01-09 11:04:51 +0200
committerMichael Widenius <monty@askmonty.org>2010-01-09 11:04:51 +0200
commitb4d7a2440ce7ddb71101ac82ed2382a639007446 (patch)
tree79585f5316e7bd7eb84079ac46d814a2c493ac44 /client
parentce068186f698872e6d7c7f475ffa2bca664f070d (diff)
downloadmariadb-git-b4d7a2440ce7ddb71101ac82ed2382a639007446.tar.gz
Fixed bug where mysqlbinlog hold up multiple connections to MySQL when using mysqlbinlog -R file1 file2 ...
Diffstat (limited to 'client')
-rw-r--r--client/mysqlbinlog.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index f55dc75df5d..68846136431 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -1378,6 +1378,10 @@ static int parse_args(int *argc, char*** argv)
*/
static Exit_status safe_connect()
{
+ /* Close and old connections to MySQL */
+ if (mysql)
+ mysql_close(mysql);
+
mysql= mysql_init(NULL);
if (!mysql)