ceph/ceph — pull request #2568 by johnugeorge (2014-09-24 17:39:23+00:00)
Title: Crush: Ensuring at most num-rep osds are selected for any rule

Crush temporary buffers are allocated as per replica size configured
by the user.When there are more final osds (to be selected as per
rule) than the replicas, buffer overlaps and it causes crash.Now, it
ensures that at most num-rep osds are selected even if more number of
osds are allowed by the rule.

Fixes: #9492

Signed-off-by: Johnu George