mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-22 22:43:33 +08:00
Add raft server access mutex to avoid races (#3503)
This commit is contained in:
@@ -16,6 +16,10 @@ func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request)
|
||||
infos := make(map[string]interface{})
|
||||
infos["Up Time"] = time.Now().Sub(startTime).String()
|
||||
infos["Max Volume Id"] = ms.Topo.GetMaxVolumeId()
|
||||
|
||||
ms.Topo.RaftServerAccessLock.RLock()
|
||||
defer ms.Topo.RaftServerAccessLock.RUnlock()
|
||||
|
||||
if ms.Topo.RaftServer != nil {
|
||||
args := struct {
|
||||
Version string
|
||||
|
Reference in New Issue
Block a user