summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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);