From fc06afc8cd1a646f71e0ed1713b05b8aa533c6d2 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Wed, 23 Mar 2011 05:25:26 +0000 Subject: mgmt/glusterd: fail create volume on create-volfiles failure Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1888 (volfile generation error ignored) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1888 --- xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 ++ 1 file changed, 2 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 96a92f0f7f1..70d65a10912 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -2256,6 +2256,8 @@ glusterd_op_create_volume (dict_t *dict, char **op_errstr) goto out; ret = glusterd_create_volfiles (volinfo); + if (ret) + goto out; ret = glusterd_volume_compute_cksum (volinfo); if (ret) -- cgit