]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PeeringState: init last_require_osd_release in ctor
authorKefu Chai <kchai@redhat.com>
Thu, 25 Mar 2021 04:04:37 +0000 (12:04 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Mar 2021 04:52:03 +0000 (12:52 +0800)
commita25d097271c77c8858678f2e0fca67b896624ef2
treeae215525733dc816a73deaa5645fb27460e82106
parent5b4a7668f195c3f5f33ec05d13c17b83d3032cee
osd/PeeringState: init last_require_osd_release in ctor

so we can use the latest osdmap to tell what is the required osd release in
*current* cluster before consuming a new osdmap which is fed to
PeeringState only if we advance to a new map.

a osd shares its pg_info using MOSDPGInfo2 or MOSDPGInfo according to
PeeringState::last_require_osd_release, this happens before a new osdmap
is fully consumed.

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