]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: move down peers out from peer_purged 27205/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 26 Mar 2019 07:02:02 +0000 (15:02 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 30 Mar 2019 01:22:11 +0000 (09:22 +0800)
commitf7c5b01e181630bb15e8b923b0334eb6adfdf50a
tree8c7f84f87fd737bf434a780aa49b43e43315eb67
parentd9497139a6f516ce015bb43a2e7f8958638cf8f8
osd/PG: move down peers out from peer_purged

In purge_strays(), we'll aggressively clear stray_set and
add all related peers into peer_purged.

However, if the corrsponding peer is down and becomes
up again, (unconditionally) adding it to peer_purged
will prevent primary from re-purging it.
(See Active::react(const MNotifyRec& notevt))

On consuming a new osdmap, let's move any down peers out from
peer_purged simutaneously. This way we can lower the risk
of leaving any leftover PGs behind.

Related-to: http://tracker.ceph.com/issues/38931
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PG.cc