mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
Merge pull request #13326 from xiexingguo/wip-firstn
crush: do is_out test only if we do not collide Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Loic Dachary <loic@dachary.org>
This commit is contained in:
commit
079616ae74
@ -548,17 +548,15 @@ parent_r %d stable %d\n",
|
||||
} else {
|
||||
/* we already have a leaf! */
|
||||
out2[outpos] = item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!reject) {
|
||||
if (!reject && !collide) {
|
||||
/* out? */
|
||||
if (itemtype == 0)
|
||||
reject = is_out(map, weight,
|
||||
weight_max,
|
||||
item, x);
|
||||
else
|
||||
reject = 0;
|
||||
}
|
||||
|
||||
reject:
|
||||
|
Loading…
Reference in New Issue
Block a user