]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd/heartbeat: maintain Session::projected_epoch correctly in maybe_share_osdmap 53940/head
authorSamuel Just <sjust@redhat.com>
Sat, 20 May 2023 00:34:45 +0000 (17:34 -0700)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 11 Oct 2023 11:22:38 +0000 (11:22 +0000)
commit9d231e127a140c52ef37159b549de4b11aba36db
tree019f3bbae45eb9a6da1167110c91097639944c47
parente23e00f18cb5f8e9fcaa9c8ca1daea49c17e0236
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>
(cherry picked from commit 29a1deb50488b3a1c32040804296e6619d605133)
src/crimson/osd/heartbeat.cc