diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-11-04 02:44:02 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-07 20:15:26 -0800 |
commit | 96f44835ea31b6d432337013b0b70191f6fa903a (patch) | |
tree | 2b0ed44c816807f4da91ddc04af2d444547d9dd2 /xlators/mgmt/glusterd/src/glusterd-volgen.c | |
parent | 7d4b708b7d2180045793677534e9fedd47da794c (diff) |
do not error out if brick count is less than sub count which is valid in the case of replicate
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2054 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2054
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 738cde83f7b..929654dad3e 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -1109,15 +1109,6 @@ client_graph_builder (glusterfs_graph_t *graph, glusterd_volinfo_t *volinfo, return -1; } - if (volinfo->sub_count && - volinfo->brick_count % volinfo->sub_count != 0) { - gf_log ("", GF_LOG_ERROR, - "volume inconsistency: " - "total number of bricks (%d) is not divisible with ", - "number of bricks per cluster (%d)", - volinfo->brick_count, volinfo->sub_count); - return -1; - } i = 0; list_for_each_entry (brick, &volinfo->bricks, brick_list) { |