]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: only take in osd into consideration when trimming osdmaps 36981/head
authorKefu Chai <kchai@redhat.com>
Thu, 3 Sep 2020 15:02:58 +0000 (23:02 +0800)
committerNeha Ojha <nojha@redhat.com>
Fri, 4 Sep 2020 00:13:46 +0000 (00:13 +0000)
commit8df0f2f608b0408c963f0e4e72f55fc766fb1f87
tree7b3a7ef88bca0ac84f59e168a9750248c5e5ab1d
parentf3060fec12a6eab020c63b9ba000c966ea31c78c
mon/OSDMonitor: only take in osd into consideration when trimming osdmaps

we should not take down osd into consideration when trimming osdmap. in
e62269c892, we decrease the upper bound of range of osdmaps to be trimmed
if the given osd is out. but we should have to decrease it only if the
osd in question is still *in*.

so, in this change, the min_lec is decreased only if the osd in question
is *in*.

Fixes: https://tracker.ceph.com/issues/47290
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 79175740cf2394bba74163ca8a5131419b9641ed)

 Conflicts:
src/mon/OSDMonitor.cc - trivial resolution
src/mon/OSDMonitor.cc