Skip to content

Commit

Permalink
Avoid fast retry on cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Feb 22, 2024
1 parent 5c42db6 commit fdd800a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ProxySQL_Cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ void * ProxySQL_Cluster_Monitor_thread(void *args) {
conn = mysql_init(NULL);
int ci = __sync_fetch_and_add(&GloProxyCluster->cluster_check_interval_ms,0);
usleep((ci)*1000); // remember, usleep is in us
sleep(1); // sleep for longer
}
} else {
sleep(1); // do not monitor if the username is empty
Expand Down

0 comments on commit fdd800a

Please sign in to comment.