From 953b139220d705cc3e8d2ae67481197b55f9e5f5 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 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; -- 2.47.3