From 4589c09c4ad758500f42a677ec8e6a2a71e5bbec Mon Sep 17 00:00:00 2001 From: Marc de Jonge Date: Wed, 15 Feb 2023 09:32:35 +0100 Subject: [PATCH] Switch to use tabs instead of spaces --- lib/MySQL_HostGroups_Manager.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index 174eb1387..762a8ac85 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -7138,18 +7138,18 @@ void MySQL_HostGroups_Manager::update_aws_aurora_set_writer(int _whid, int _rhid sprintf(query,q, _server_id, domain_name); mydb->execute(query); - unsigned int max_max_connections = 1000; - unsigned int max_use_ssl = 0; - MyHGC *myhgc = MyHGC_lookup(_whid); - for (int j = 0; j < (int) myhgc->mysrvs->cnt(); j++) { - MySrvC *mysrvc = (MySrvC *) myhgc->mysrvs->servers->index(j); - if (mysrvc->max_connections > max_max_connections) { - max_max_connections = mysrvc->max_connections; - } - if (mysrvc->use_ssl > max_use_ssl) { - max_use_ssl = mysrvc->use_ssl; - } - } + unsigned int max_max_connections = 1000; + unsigned int max_use_ssl = 0; + MyHGC *myhgc = MyHGC_lookup(_whid); + for (int j = 0; j < (int) myhgc->mysrvs->cnt(); j++) { + MySrvC *mysrvc = (MySrvC *) myhgc->mysrvs->servers->index(j); + if (mysrvc->max_connections > max_max_connections) { + max_max_connections = mysrvc->max_connections; + } + if (mysrvc->use_ssl > max_use_ssl) { + max_use_ssl = mysrvc->use_ssl; + } + } q=(char *)"INSERT INTO mysql_servers_incoming (hostgroup_id, hostname, port, weight, max_connections, use_ssl) VALUES (%d, '%s%s', %d, %d, %d, %d)"; sprintf(query,q, _writer_hostgroup, _server_id, domain_name, aurora_port, new_reader_weight, max_max_connections, max_use_ssl);