fix(master): initialize reportTime for datanode when leader changed

Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
chihe 2024-07-11 15:56:01 +08:00 committed by AmazingChi
parent 2a9d99bdf9
commit 6cc809434a

View File

@ -89,6 +89,7 @@ func newDataNode(addr, zoneName, clusterID string) (dataNode *DataNode) {
dataNode.CpuUtil.Store(0)
dataNode.SetIoUtils(make(map[string]float64))
dataNode.AllDisks = make([]string, 0)
dataNode.ReportTime = time.Now()
return
}