summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crush/mapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crush/mapper.c b/src/crush/mapper.c
index f691535af6e..8ca87d794d0 100644
--- a/src/crush/mapper.c
+++ b/src/crush/mapper.c
@@ -392,7 +392,7 @@ static int crush_choose(const struct crush_map *map,
}
reject = 0;
- if (recurse_to_leaf) {
+ if (!collide && recurse_to_leaf) {
if (item < 0) {
if (crush_choose(map,
map->buckets[-1-item],