]> git.apps.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>
Wed, 1 Oct 2025 18:46:59 +0000 (14:46 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/mon/MonmapMonitor.cc
src/mon/MonmapMonitor.h

index 0a402b70f9f7210ff2078374423935dcd8cfad13..4ec436795cac8ead5878e7678974775372d16a18 100644 (file)
@@ -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;
+}
index 942d53416fd51b8f793740d5632c4510bb7408bf..f083d1276b69f2dc3d71c82f2232d000450b8335 100644 (file)
@@ -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;