]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Crush: Ensuring at most num-rep osds are selected 2568/head
authorJohnu George <johnugeo@cisco.com>
Wed, 24 Sep 2014 16:32:50 +0000 (09:32 -0700)
committerJohnu George <johnugeo@cisco.com>
Fri, 26 Sep 2014 20:04:58 +0000 (13:04 -0700)
commit6b4d1aa99718e3b367496326c1e64551330fabc0
treeb2c075c9ee0e929c43068f3cf8decfcf2549b40c
parent83fb32ca41c0e4fea00cb72c0c13c24cc935e83b
Crush: Ensuring at most num-rep osds are selected

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 <johnugeo@cisco.com>
src/crush/mapper.c