summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-tier.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-tier.c b/xlators/mgmt/glusterd/src/glusterd-tier.c
index 59a4bc1b3e0..45f6ac30ba3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-tier.c
+++ b/xlators/mgmt/glusterd/src/glusterd-tier.c
@@ -1177,6 +1177,16 @@ glusterd_add_tierd_to_dict (glusterd_volinfo_t *volinfo,
if (ret)
goto out;
+ /* tier doesn't have a port. but the cli needs a port key with
+ * an zero value to parse.
+ * */
+
+ memset (key, 0, sizeof (key));
+ snprintf (key, sizeof (key), "%s.port", base_key);
+ ret = dict_set_int32 (dict, key, 0);
+ if (ret)
+ goto out;
+
glusterd_svc_build_tierd_pidfile (volinfo, pidfile, sizeof (pidfile));
brick_online = gf_is_service_running (pidfile, &pid);