From: Patrick Donnelly Date: Fri, 13 Jun 2025 19:14:55 +0000 (-0400) Subject: mon: notify_new_monmap via MonmapMonitor::init X-Git-Tag: testing/wip-pdonnell-testing-20260126.152838~88 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ee03493015eb4a67e834d703fa7a1d15cd6b00d6;p=ceph-ci.git mon: notify_new_monmap via MonmapMonitor::init Otherwise, configurations are not updated during startup. Signed-off-by: Patrick Donnelly --- diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index a918803b4cc..4208a935a0b 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -126,6 +126,12 @@ void MonmapMonitor::update_from_paxos(bool *need_bootstrap) mon.notify_new_monmap(true); } +void MonmapMonitor::init() +{ + /* init relevant Monitor state */ + mon.notify_new_monmap(false, false); +} + void MonmapMonitor::create_pending() { pending_map = *mon.monmap; diff --git a/src/mon/MonmapMonitor.h b/src/mon/MonmapMonitor.h index 14d48dd7dbb..1001f044a3f 100644 --- a/src/mon/MonmapMonitor.h +++ b/src/mon/MonmapMonitor.h @@ -40,6 +40,8 @@ class MonmapMonitor : public PaxosService { } MonMap pending_map; //the pending map awaiting passage + void init() override; + void create_initial() override; void update_from_paxos(bool *need_bootstrap) override;