mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Fixed bug where mysqlbinlog hold up multiple connections to MySQL when using mysqlbinlog -R file1 file2 ...
This commit is contained in:
parent
ce068186f6
commit
b4d7a2440c
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue