diff options
author | Michael Widenius <monty@askmonty.org> | 2010-01-09 11:04:51 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-01-09 11:04:51 +0200 |
commit | b4d7a2440ce7ddb71101ac82ed2382a639007446 (patch) | |
tree | 79585f5316e7bd7eb84079ac46d814a2c493ac44 /client | |
parent | ce068186f698872e6d7c7f475ffa2bca664f070d (diff) | |
download | mariadb-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.cc | 4 |
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) |