mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(master): initialize reportTime for datanode when leader changed
Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
parent
2a9d99bdf9
commit
6cc809434a
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user