From: Patrick Donnelly Date: Fri, 9 May 2025 18:19:18 +0000 (-0400) Subject: mon/MonmapMonitor: wire up interface to bump auth epoch X-Git-Tag: testing/wip-pdonnell-testing-20260210.212535~83 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fffdb84d4581edc96a56a12f8261686a77452b87;p=ceph-ci.git mon/MonmapMonitor: wire up interface to bump auth epoch Signed-off-by: Patrick Donnelly --- diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index 4208a935a0b..fa59c53273b 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -1525,3 +1525,11 @@ void MonmapMonitor::tick() propose_pending(); } } + +epoch_t MonmapMonitor::bump_auth_epoch(epoch_t e) +{ + ceph_assert(is_writeable()); + ceph_assert(e >= pending_map.auth_epoch); + pending_map.auth_epoch = e; + return e; +} diff --git a/src/mon/MonmapMonitor.h b/src/mon/MonmapMonitor.h index 1001f044a3f..b0525f28a4c 100644 --- a/src/mon/MonmapMonitor.h +++ b/src/mon/MonmapMonitor.h @@ -79,6 +79,8 @@ class MonmapMonitor : public PaxosService { void tick() override; + epoch_t bump_auth_epoch(epoch_t e); + private: void check_subs(); ceph::buffer::list monmap_bl;