]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PeeringState: fix history.same_interval_since of merge target again 36033/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 13 Jun 2020 07:28:31 +0000 (15:28 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 10 Jul 2020 21:29:16 +0000 (23:29 +0200)
commit64a05dba0bfb8f5cdbbb08c63f421370bce869d2
tree05665857b25f8c0f7b25a3148b39908545ccd26b
parent690c7ca1a27b11ba119fbc95e96319b1f3233753
osd/PeeringState: fix history.same_interval_since of merge target again

The symptom looks much like we see in
https://tracker.ceph.com/issues/37654.

The root cause is that both merge source and target could be
fabricated PGs (aka placeholders), hence merge target's
same_interval_since could remain 0 after merge.

Fix by adjusting history.same_interval_since to last_epoch_clean
reported by these PGs were found to be ready for merge.
This peer is going to be ignored/purged by primary anyway later
when peering is done.

Fixes: https://tracker.ceph.com/issues/45991
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit be5ea3a01f31b4893a823e971f452f3ccf9de001)
src/osd/PeeringState.cc