From 92242ecd1047fe23ca494555edd6033685522c82 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Fri, 28 Nov 2014 10:46:20 +0530 Subject: glusterd/uss: if snapd is not running, return success from glusterd_handle_snapd_option glusterd_handle_snapd_option was returning failure if snapd is not running because of which gluster commands were failing. Change-Id: I22286f4ecf28b57dfb6fb8ceb52ca8bdc66aec5d BUG: 1168803 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/9206 Reviewed-by: Kaushal M Reviewed-by: Avra Sengupta Tested-by: Gluster Build System Reviewed-by: Vijaikumar Mallikarjuna Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- xlators/mgmt/glusterd/src/glusterd-utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 6eaa5f6d05a..39323897045 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -13521,6 +13521,9 @@ glusterd_handle_snapd_option (glusterd_volinfo_t *volinfo) "Couldn't stop snapd for " "volume: %s", volinfo->volname); + } else { + /* Since snapd is not running set ret to 0 */ + ret = 0; } goto out; } -- cgit