From 4d767c4dcacb65494f1e595be4c55b8bfea07df6 Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Mon, 21 Oct 2019 14:38:34 -0700 Subject: [PATCH] Default mysql_aws_aurora_hostgroups new_reader_weight to 1 in config --- 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 7b6328123..90c990981 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -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());