3 Always enable DHT so that scaling from 1 brick to more does not raise
6 From upstream http://review.gluster.org/3838
8 --- xlators/mgmt/glusterd/src/glusterd-volgen.c.orig
9 +++ xlators/mgmt/glusterd/src/glusterd-volgen.c
10 @@ -2362,7 +2362,6 @@ volgen_graph_build_dht_cluster (volgen_graph_t *graph,
11 char *decommissioned_children = NULL;
14 - GF_ASSERT (child_count > 1);
15 clusters = volgen_graph_build_clusters (graph, volinfo,
16 "cluster/distribute", "%s-dht",
17 child_count, child_count);
18 @@ -2455,12 +2454,16 @@ volume_volgen_graph_build_clusters (volgen_graph_t *graph,
21 dist_count = volinfo->brick_count / volinfo->dist_leaf_count;
22 - if (dist_count > 1) {
23 - ret = volgen_graph_build_dht_cluster (graph, volinfo,
32 + ret = volgen_graph_build_dht_cluster (graph, volinfo,