From ee03493015eb4a67e834d703fa7a1d15cd6b00d6 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 13 Jun 2025 15:14:55 -0400 Subject: [PATCH] mon: notify_new_monmap via MonmapMonitor::init Otherwise, configurations are not updated during startup. Signed-off-by: Patrick Donnelly --- src/mon/MonmapMonitor.cc | 6 ++++++ src/mon/MonmapMonitor.h | 2 ++ 2 files changed, 8 insertions(+) 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; -- 2.47.3