]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: keep track of last_peering_reset
authorKefu Chai <kchai@redhat.com>
Sat, 2 Mar 2019 04:55:01 +0000 (12:55 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Mar 2019 05:21:32 +0000 (13:21 +0800)
commite1261d8a29b56cdcec52041b95e6b27080e39482
treed05dd4481b19072e5372740424df89ae6e928eff
parent2ea299b640be4fdde7e52cbb3534308e8f50a51f
crimson/osd: keep track of last_peering_reset

last_peering_reset is used to track the epoch when the most recent peering
started. it is used to tell if a message is targeting a changed PG. the
sender of a peering message will attach it. and the recipient will check
it against its own last_peering_reset. for instance, if a message claims
that that its map epoch is 16, while our last_peering_reset is 18, we will
consider this message stale, and probably drop it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg.h