From 222b98ee5c38cbe4119718603f0d8d9a3a2d7fbc Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Wed, 1 Sep 2010 03:12:56 +0000 Subject: check if the volume is already started before starting Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 1496 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1496 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators') diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 7ba8dbcff41..1f8bb55ed54 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); -- cgit