]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/MonmapMonitor: wire up interface to bump auth epoch
authorPatrick Donnelly <pdonnell@ibm.com>
Fri, 9 May 2025 18:19:18 +0000 (14:19 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 29 Dec 2025 22:29:59 +0000 (17:29 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/mon/MonmapMonitor.cc
src/mon/MonmapMonitor.h

index 4208a935a0b7bbd9d998a5ad8d89b00d263897f8..fa59c53273ba03e8e058080a044dfcb4957316eb 100644 (file)
@@ -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;
+}
index 1001f044a3fe7c5f73baeb8b3356e1e0a2baeced..b0525f28a4c10027749edc81ee706d54535e3a6a 100644 (file)
@@ -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;