diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-brick-ops.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-brick-ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c index f488996c04d..75087d54771 100644 --- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c +++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c @@ -127,6 +127,9 @@ glusterd_handle_add_brick (rpcsvc_request_t *req) } + if (volinfo->type == GF_CLUSTER_TYPE_NONE) + goto brick_val; + /* If any of this is true, some thing is wrong */ if (!brick_count || !volinfo->sub_count) { ret = -1; @@ -135,9 +138,6 @@ glusterd_handle_add_brick (rpcsvc_request_t *req) goto out; } - if (volinfo->type == GF_CLUSTER_TYPE_NONE) - goto brick_val; - total_bricks = volinfo->brick_count + brick_count; /* If the brick count is less than dist_leaf_count then, allow add-brick only for plain replicate volume since in plain stripe |