Fixed bug where mysqlbinlog hold up multiple connections to MySQL when using mysqlbinlog -R file1 file2 ...

This commit is contained in:
Michael Widenius 2010-01-09 11:04:51 +02:00
parent ce068186f6
commit b4d7a2440c

View file

@ -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)