diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2014-11-28 10:46:20 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2015-01-08 01:14:01 -0800 |
commit | 5e808f3a5dfa3fba58ff0206775de2653d62b2de (patch) | |
tree | d88c61521c0fe3f5a86bd055331bfcb7686dc145 /xlators | |
parent | e281c3dfac7a4178447436356c7e72e4e12bd09a (diff) |
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: 1175765
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/9206
Reviewed-by: Kaushal M <kaushal@redhat.com>
Reviewed-by: Avra Sengupta <asengupt@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijaikumar Mallikarjuna <vmallika@redhat.com>
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Krishnan Parthasarathi <kparthas@redhat.com>
Signed-off-by: Sachin Pandit <spandit@redhat.com>
Reviewed-on: http://review.gluster.org/9311
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index bd58b0ef1bc..d4521679d86 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -13499,6 +13499,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; } |