From 3e5c243396b6acf1a76d66d80c798466dc5caa55 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 2 Sep 2010 05:24:48 +0000 Subject: cli, mgmt/glusterd: Added replace brick cli response Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1322 (Replace brick should show status of paused and abort states) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1322 --- cli/src/cli3_1-cops.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'cli/src') diff --git a/cli/src/cli3_1-cops.c b/cli/src/cli3_1-cops.c index e7be898734a..5bf0e3670a9 100644 --- a/cli/src/cli3_1-cops.c +++ b/cli/src/cli3_1-cops.c @@ -785,14 +785,7 @@ gf_cli3_1_replace_brick_cbk (struct rpc_req *req, struct iovec *iov, case GF_REPLACE_OP_STATUS: - ret = dict_get_str (dict, "status-reply", - &status_reply); - if (ret) { - gf_log ("", GF_LOG_DEBUG, - "dict_get failed on status reply"); - goto out; - } - + status_reply = rsp.status; if (rsp.op_ret || ret) rb_operation_str = "replace-brick status unknown"; else -- cgit