]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMonitor: bug fix pg monitor get crush rule 5141/head
authorXinze Chi <xmdxcxz@gmail.com>
Fri, 3 Jul 2015 10:27:13 +0000 (18:27 +0800)
committerXinze Chi <xmdxcxz@gmail.com>
Fri, 3 Jul 2015 11:31:36 +0000 (19:31 +0800)
commit498793393c81c0a8e37911237969fba495a3a183
treee0f995a44b23b422309fdc5073eb04a39f3ec50b
parent3325f825ca950e3a884081d12fcac5bfee396398
mon/PGMonitor: bug fix pg monitor get crush rule

when some rules have been deleted before, the index in array of crush->rules
is not always equals to crush_ruleset of pool.

Fixes: #12210
Reported-by: Ning Yao <zay11022@gmail.com>
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
src/mon/PGMonitor.cc