maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #01864
bzr commit into MariaDB 5.1, with Maria 1.5:maria branch (monty:2790)
#At lp:maria based on revid:monty@xxxxxxxxxxxx-20100104183126-gskwc3tnm7f26os6
2790 Michael Widenius 2010-01-09
Fixed bug where mysqlbinlog hold up multiple connections to MySQL when using mysqlbinlog -R file1 file2 ...
modified:
client/mysqlbinlog.cc
=== modified file 'client/mysqlbinlog.cc'
--- a/client/mysqlbinlog.cc 2009-12-03 11:19:05 +0000
+++ b/client/mysqlbinlog.cc 2010-01-09 09:04:51 +0000
@@ -1378,6 +1378,10 @@ static int parse_args(int *argc, char***
*/
static Exit_status safe_connect()
{
+ /* Close and old connections to MySQL */
+ if (mysql)
+ mysql_close(mysql);
+
mysql= mysql_init(NULL);
if (!mysql)