From 921755aaadda802814adcbfa47222624a0a80f0f Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 9 May 2025 14:19:18 -0400 Subject: [PATCH] mon/MonmapMonitor: wire up interface to bump auth epoch Signed-off-by: Patrick Donnelly --- src/mon/MonmapMonitor.cc | 8 ++++++++ src/mon/MonmapMonitor.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index 0a402b70f9f..4ec436795ca 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -1524,3 +1524,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 942d53416fd..f083d1276b6 100644 --- a/src/mon/MonmapMonitor.h +++ b/src/mon/MonmapMonitor.h @@ -78,6 +78,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; -- 2.39.5