mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35064 Reduce the default spider connect retry counts to 2
The existing default value 1000 is too big and could result in "hanging" when failing to connect a remote server. Three tries in total is a more sensible default.
This commit is contained in:
@@ -2042,7 +2042,7 @@ int spider_db_mbase::connect(
|
||||
DBUG_RETURN(ER_CONNECT_TO_FOREIGN_DATA_SOURCE);
|
||||
}
|
||||
connect_retry_count--;
|
||||
my_sleep((ulong) connect_retry_interval);
|
||||
my_sleep((ulong) connect_retry_interval * 1000);
|
||||
} else {
|
||||
db_conn->net.thd = NULL;
|
||||
if (connect_mutex)
|
||||
|
Reference in New Issue
Block a user