]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Crush: Ensuring at most num-rep osds are selected
authorJohnu George <johnugeo@cisco.com>
Wed, 24 Sep 2014 16:32:50 +0000 (09:32 -0700)
committerJohnu George <johnugeo@cisco.com>
Sat, 4 Oct 2014 18:27:17 +0000 (11:27 -0700)
commit01e389aeb6001c59e0fad67ae712657a896d7290
tree9377bf759b929f4dddcf32242b3a88937add4c2c
parent499a73b3c344e1f8954f1afd5b6c35ccd3f2f878
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>
(cherry picked from commit 6b4d1aa99718e3b367496326c1e64551330fabc0)
src/crush/mapper.c