fix: generate topology uuid uniformly in single-master mode (#8405)

* fix: ensure topology uuid is generated in single master setups

* ensureTopologyId adds a Hashicorp-aware implementation

* simplify
This commit is contained in:
Chris Lu
2026-02-22 23:45:48 -08:00
committed by GitHub
parent 998c8d2702
commit 57ab99d13e
2 changed files with 26 additions and 3 deletions

View File

@@ -51,6 +51,7 @@ func (ms *MasterServer) collectionDeleteHandler(w http.ResponseWriter, r *http.R
func (ms *MasterServer) dirStatusHandler(w http.ResponseWriter, r *http.Request) {
m := make(map[string]interface{})
m["Version"] = version.Version()
m["TopologyId"] = ms.Topo.GetTopologyId()
m["Topology"] = ms.Topo.ToInfo()
writeJsonQuiet(w, r, http.StatusOK, m)
}