Skip to content

Commit

Permalink
crush: adjust local retry threshold
Browse files Browse the repository at this point in the history
This small adjustment reflects a change that was made in ceph.git commit
af6a9f30696c900a2a8bd7ae24e8ed15fb4964bb, about 6 months ago.  An N-1
search is not exhaustive.  Fixed ceph.git bug #1594.

Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
  • Loading branch information
Sage Weil committed May 7, 2012
1 parent 8b12d47 commit c90f95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ceph/crush/mapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static int crush_choose(const struct crush_map *map,
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)
Expand Down

0 comments on commit c90f95e

Please sign in to comment.