From d31e97336aac057510203f0942856b66baf4a91b Mon Sep 17 00:00:00 2001 From: Kaushik BV Date: Mon, 11 Oct 2010 12:13:51 +0000 Subject: mgmt/Glusterd: fixes in volume reset Signed-off-by: Kaushik BV Signed-off-by: Vijay Bellur BUG: 1159 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1159 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 1 + xlators/protocol/client/src/client.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index ca935841593..e0fc1cc7ee3 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -4838,6 +4838,7 @@ glusterd_op_stage_validate (gd1_mgmt_stage_op_req *req, char **op_errstr, case GD_OP_RESET_VOLUME: ret = glusterd_op_stage_reset_volume (req); + break; case GD_OP_REMOVE_BRICK: ret = glusterd_op_stage_remove_brick (req); diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index 17fcc1a85f3..e2513f89145 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -1898,6 +1898,8 @@ reconfigure (xlator_t *this, dict_t *options) conf->rpc_conf.rpc_timeout = frame_timeout; } + else + conf->rpc_conf.rpc_timeout = 1800; timeout_ret = dict_get_int32 (options, "ping-timeout", &ping_timeout); @@ -1925,6 +1927,8 @@ reconfigure (xlator_t *this, dict_t *options) "'option ping-timeout' to %d", ping_timeout); conf->opt.ping_timeout = ping_timeout; } + else + conf->opt.ping_timeout = GF_UNIVERSAL_ANSWER; subvol_ret = dict_get_str (this->options, "remote-host", &old_remote_host); -- cgit