From cd7e740a517ec17474f89006e8ec0f0d32e50fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Thu, 26 Aug 2021 22:20:00 +0200 Subject: [PATCH] Get mutex during LOAD PROXYSQL SERVERS TO RUNTIME --- lib/ProxySQL_Admin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 8605bd5fc..f76b6a384 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -2594,7 +2594,7 @@ bool admin_handler_command_load_or_save(char *query_no_space, unsigned int query // load_proxysql_servers_to_runtime() calls ProxySQL_Cluster::load_servers_list() // that then calls ProxySQL_Cluster_Nodes::load_servers_list(), holding a mutex pthread_mutex_unlock(&SPA->sql_query_global_mutex); - SPA->load_proxysql_servers_to_runtime(); + SPA->load_proxysql_servers_to_runtime(true); // we re-acquired the mutex because it will be released by the calling function pthread_mutex_lock(&SPA->sql_query_global_mutex); //SPA->mysql_servers_wrunlock();