From 9ae09c0be13639c6fa190934f48b32d338d779f0 Mon Sep 17 00:00:00 2001 From: gaodunqiao Date: Fri, 19 Jan 2018 15:08:23 +0800 Subject: [PATCH] Change configuration's meta_addr format --- conf/zgw-example.conf | 2 +- src/zgw_config.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/zgw-example.conf b/conf/zgw-example.conf index 949379a..8e3866c 100644 --- a/conf/zgw-example.conf +++ b/conf/zgw-example.conf @@ -1,6 +1,6 @@ # zeppelin-gateway config file -zp_meta_addr: 127.0.0.1:9221/127.0.0.1:9222/127.0.0.1:9223 +zp_meta_addr: 127.0.0.1:9221,127.0.0.1:9222,127.0.0.1:9223 zp_optimeout_ms: 5000 redis_ip_port: 127.0.0.1:19221 redis_passwd: passwd diff --git a/src/zgw_config.cc b/src/zgw_config.cc index 143531c..4450954 100644 --- a/src/zgw_config.cc +++ b/src/zgw_config.cc @@ -42,7 +42,7 @@ int ZgwConfig::LoadConf() { // Meta server std::string zp_meta_addr; b_conf->GetConfStr("zp_meta_addr", &zp_meta_addr); - slash::StringSplit(zp_meta_addr, '/', zp_meta_ip_ports); + slash::StringSplit(zp_meta_addr, ',', zp_meta_ip_ports); b_conf->GetConfInt("zp_optimeout_ms", &zp_optimeout_ms); b_conf->GetConfStr("redis_ip_port", &redis_ip_port); b_conf->GetConfStr("redis_passwd", &redis_passwd);