]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd/heartbeat: maintain Session::projected_epoch correctly in maybe_share_osdmap
authorSamuel Just <sjust@redhat.com>
Sat, 20 May 2023 00:34:45 +0000 (17:34 -0700)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 21 May 2023 13:25:00 +0000 (13:25 +0000)
commit29a1deb50488b3a1c32040804296e6619d605133
tree74800f1da893f0c2b5ab0efc1fb4ce4ed63d5c32
parentf89b5beaa576c5869ffa565faf7eb846a28aa3ba
crimson/osd/heartbeat: maintain Session::projected_epoch correctly in maybe_share_osdmap

Previously, we only updated projected_map to the value sent by the peer.
This patch simplifies the end by removing an unnecessary guard and
updating projected_epoch before call,ing send_incremental_map_to_osd.

Fixes: https://tracker.ceph.com/issues/61304
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/heartbeat.cc