Merge pull request #2337 from wjordan/config_new_reader_weight_default

Default mysql_aws_aurora_hostgroups new_reader_weight to 1 in config
pull/2343/head
René Cannaò 7 years ago committed by GitHub
commit 8560474bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9434,7 +9434,7 @@ int ProxySQL_Admin::Read_MySQL_Servers_from_configfile() {
if (line.lookupValue("check_interval_ms", check_interval_ms)==false) check_interval_ms=1000;
if (line.lookupValue("check_timeout_ms", check_timeout_ms)==false) check_timeout_ms=1000;
if (line.lookupValue("writer_is_also_reader", writer_is_also_reader)==false) writer_is_also_reader=0;
if (line.lookupValue("new_reader_weight", new_reader_weight)==false) new_reader_weight=0;
if (line.lookupValue("new_reader_weight", new_reader_weight)==false) new_reader_weight=1;
line.lookupValue("comment", comment);
line.lookupValue("domain_name", domain_name);
char *o1=strdup(comment.c_str());

Loading…
Cancel
Save