diff options
Diffstat (limited to 'xlators/cluster/dht/src/dht-selfheal.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-selfheal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index a20526067b4..3d4f13c6f3f 100644 --- a/xlators/cluster/dht/src/dht-selfheal.c +++ b/xlators/cluster/dht/src/dht-selfheal.c @@ -482,6 +482,9 @@ dht_get_layout_count (xlator_t *this, dht_layout_t *layout) } } + count = ((layout->spread_cnt) ? layout->spread_cnt : + ((count) ? count : 1)); + return count; } |