summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c1
-rw-r--r--xlators/protocol/client/src/client.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index ca9358415..e0fc1cc7e 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 17fcc1a85..e2513f891 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);