From 938addeb7ec634e431c2c8c0a768a2a9ed056c0d Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Fri, 6 Oct 2017 05:33:31 -0400 Subject: geo-rep/scheduler: Add validation for session existence Added validation to check for session existence to give out proper error message out. Change-Id: I13c5f6ef29c1395cff092a14e1bd2c197a39f058 BUG: 1499159 Signed-off-by: Kotresh HR --- cli/src/cli-rpc-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 2b15813e123..d6199b42a62 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -5854,7 +5854,7 @@ gf_cli_gsync_status_output (dict_t *dict, gf_boolean_t is_detail) gf_log ("cli", GF_LOG_INFO, "%s", errmsg); cli_out ("%s", errmsg); - ret = 0; + ret = -1; goto out; } -- cgit