1
0
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:
Yuchen Pei
2024-10-04 16:49:53 +10:00
parent 142851f120
commit a8cc40d9a4
4 changed files with 36 additions and 2 deletions

View File

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