From 15a171e85156bafb7a0d2ee70bbcc8288d9509f4 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 b608a802b52..0a402b70f9f 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -125,6 +125,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 7c196404c2b..942d53416fd 100644 --- a/src/mon/MonmapMonitor.h +++ b/src/mon/MonmapMonitor.h @@ -39,6 +39,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.39.5