diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 84280498e8b..11cbeba0851 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -2746,16 +2746,7 @@ glusterd_bricks_select_heal_volume (dict_t *dict, char **op_errstr) goto out; } - if (volinfo->type == GF_CLUSTER_TYPE_STRIPE_REPLICATE) { - replica_count = volinfo->replica_count; - - } else if (volinfo->type == GF_CLUSTER_TYPE_REPLICATE) { - replica_count = volinfo->sub_count; - - } else { - GF_ASSERT (0); - goto out; - } + replica_count = volinfo->replica_count; index = 1; list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) { |