From 3c22e1c8af0cb3b5ed21a4c36cda397e94a6ac55 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 (cherry picked from commit 51a2bab8ed48b2dc698ac4eeede48d94175b1851) --- 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 61942da6d8e..c73e1958c9e 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 dc75e9620b2..40aa3fbc474 100644 --- a/src/mon/MonmapMonitor.h +++ b/src/mon/MonmapMonitor.h @@ -37,6 +37,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