From 4e8fdc2bcec99489efe11d9fb5798df86ef8424b Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 20 Oct 2026 04:22:36 -0700 Subject: [PATCH] drain stashed topology id reports when the id arrives outside the mint path --- weed/server/raft_common.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/server/raft_common.go b/weed/server/raft_common.go index 5c1bd390cc..2d13124698 100644 --- a/weed/server/raft_common.go +++ b/weed/server/raft_common.go @@ -30,6 +30,9 @@ func recoverTopologyIdFromState(fsmState []byte, topo *topology.Topology) { // It uses the provided checkLeaderFn to verify leadership and persistFn to save the new ID. func EnsureTopologyId(topo *topology.Topology, checkLeaderFn func() bool, persistFn func(string) error) { if topo.GetTopologyId() != "" { + // The id arrived through raft replay or the mirror file; reports + // stashed while it was unknown can now be checked. + topo.SetTopologyInitPending(false) return }