]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: reply if pg is absent when handling MQuery
authorKefu Chai <kchai@redhat.com>
Mon, 16 Sep 2019 10:48:23 +0000 (18:48 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 16 Sep 2019 11:03:42 +0000 (19:03 +0800)
commit707c0eb4a12672caa8e9f6111939f70c6478d267
treed8cccb61bff5b7daba76aa436e673ddb7d9804fe
parentd6deafdbb518020066278833d4f51b800e1287e3
crimson/osd: reply if pg is absent when handling MQuery

in previous commit, the support of `MOSDPGQuery` was dropped. but
if we want to handle `MOSDPGQuery2` properly, we should take
`on_pg_absent()` into consideration when handling `MOSDPGQuery2`.

in this change, we handle `MOSDPGQuery2` by checking the boost event
against `MQuery`, so we don't need to create a new class derived from
`RemotePeeringEvent` for specializing the behavior.

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