summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-09-01 03:12:56 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-01 05:16:11 -0700
commit222b98ee5c38cbe4119718603f0d8d9a3a2d7fbc (patch)
treea4676d851192c0dc9b7c282cb83c9ead588ce660 /xlators
parent780023f5e567b9ff9573edc47d71a1c7282bdbb5 (diff)
check if the volume is already started before starting
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1496 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1496
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 7ba8dbcff..1f8bb55ed 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -441,6 +441,12 @@ glusterd_op_stage_start_volume (gd1_mgmt_stage_op_req *req)
}
}
+ if (GLUSTERD_STATUS_STARTED == volinfo->status) {
+ gf_log ("glusterd", GF_LOG_ERROR,
+ "volume already started");
+ ret = -1;
+ }
+
out:
gf_log ("", GF_LOG_DEBUG, "Returning %d", ret);