From c528589a585c23b4288784247310b8763612a822 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Fri, 10 Apr 2015 15:17:05 +0530 Subject: glusterd: Store ping-timeout in glusterd conf in memory As of now glusterd_conf_t's ping-timeout was of no use and hence statedump was not reflecting correct ping-timeout value configured in glusterd.vol Change-Id: I76ba7b721264565751538c7fcdcb801a28317581 BUG: 1210627 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/10191 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- xlators/mgmt/glusterd/src/glusterd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 6ffde511af4..361cc007327 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -1588,6 +1588,11 @@ init (xlator_t *this) } } + /* Store ping-timeout in conf */ + ret = dict_get_int32 (this->options, "ping-timeout", + &conf->ping_timeout); + /* Not failing here since ping-timeout can be optional as well */ + this->private = conf; glusterd_mgmt_v3_lock_init (); glusterd_txn_opinfo_dict_init (); -- cgit