summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2014-02-13 16:52:17 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-02-13 22:01:22 -0800
commit5dcc5d4b8ee554ebf5c1aceeda9b73e321d5abd5 (patch)
tree1aeb0590172bac12a6b885bf4c8a79d35bfaa39f
parent96f6c5159da92500e8ddb21a487d2848a2b1f7db (diff)
mgmt/glusterd: check the status of the snap volume while stopping snap bricks
Change-Id: I60b635f275498b285aa34702ce6ca41bfb7e01a0 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/6995 Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index d223fab..e7cad0b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -1844,7 +1844,7 @@ glusterd_snap_volume_stop_glusterfs (glusterd_volinfo_t *volinfo,
if (del_brick)
list_del_init (&brickinfo->brick_list);
- if (GLUSTERD_STATUS_STARTED == volinfo->status) {
+ if (GLUSTERD_STATUS_STARTED == snap_volinfo->status) {
(void) glusterd_brick_disconnect (brickinfo);
GLUSTERD_GET_SNAP_BRICK_PIDFILE (pidfile, volinfo->volname,
snap_volinfo->volname,