mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Changing the default of libmysqlclient : it's now NO reconnection.
All our programs which use mysql_real_connect() and mysql_connect() are updated accordingly, though I have deliberately made mysqlimport not reconnect anymore (already true for mysqldump >= 4.1.8). All Connector devs have been warned about the change I'm doing here - which was agreed with Monty, and fixes BUG#2555.
This commit is contained in:
@ -877,7 +877,10 @@ static void manager_exec_connect(struct manager_exec* e)
|
||||
{
|
||||
if (mysql_real_connect(&e->mysql,e->con_host,e->con_user,e->con_pass,0,
|
||||
e->con_port,e->con_sock,0))
|
||||
{
|
||||
e->mysql.reconnect= 1;
|
||||
return;
|
||||
}
|
||||
sleep(1);
|
||||
}
|
||||
e->error="Could not connect to MySQL server withing the number of tries";
|
||||
|
Reference in New Issue
Block a user