]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Crush: Ensuring at most num-rep osds are selected 2642/head
authorJohnu George <johnugeo@cisco.com>
Mon, 29 Sep 2014 17:07:44 +0000 (10:07 -0700)
committerJohnu George <johnugeo@cisco.com>
Sat, 4 Oct 2014 18:27:17 +0000 (11:27 -0700)
commit1858f06c804b760edfadfda8afe358396778fb27
tree911299815139ca65ff1f3a8c4201205a21020b31
parent01e389aeb6001c59e0fad67ae712657a896d7290
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 indep rule. The fix for firstn rules is already
merged as part of bug #9492. Required test files are added.

Fixes: #9492
Signed-off-by: Johnu George johnugeo@cisco.com
(cherry picked from commit 234b066ba04976783d15ff2abc3e81b6cc06fb10)
src/crush/mapper.c
src/test/cli/crushtool/test-map-firstn-indep.t [new file with mode: 0644]
src/test/cli/crushtool/test-map-firstn-indep.txt [new file with mode: 0644]