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 <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/10191
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Krishnan Parthasarathi <kparthas@redhat.com>
This commit is contained in:
Atin Mukherjee 2015-04-10 15:17:05 +05:30 committed by Krishnan Parthasarathi
parent 6e8298654a
commit c528589a58

View File

@ -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 ();