diff options
author | Pranith K <pranithk@gluster.com> | 2011-03-23 05:25:26 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-25 04:12:04 -0700 |
commit | fc06afc8cd1a646f71e0ed1713b05b8aa533c6d2 (patch) | |
tree | 007813db36af8ea32f48c7804df9b52830fc1b5e /xlators | |
parent | e488f48ebc3d545b9924b828e59f08a5d42571ba (diff) |
mgmt/glusterd: fail create volume on create-volfiles failure
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1888 (volfile generation error ignored)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1888
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |