From af6a9f30696c900a2a8bd7ae24e8ed15fb4964bb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 7 Oct 2011 12:54:59 -0700 Subject: [PATCH] crush: try _all_ bucket items when doing exhaustive search N-1 isn't exhaustive. Fixes: #1594 Signed-off-by: Sage Weil --- src/crush/mapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crush/mapper.c b/src/crush/mapper.c index cb8195aa5756a..8235ca2e15006 100644 --- a/src/crush/mapper.c +++ b/src/crush/mapper.c @@ -415,7 +415,7 @@ reject: if (collide && flocal < 3) /* retry locally a few times */ retry_bucket = 1; - else if (flocal < in->size + orig_tries) + else if (flocal <= in->size + orig_tries) /* exhaustive bucket search */ retry_bucket = 1; else if (ftotal < 20) -- 2.39.5