|
|
@ -47,7 +47,7 @@ func (r *Rack) GetOrCreateDataNode(ip string, port int, grpcPort int, publicUrl |
|
|
|
dn.GrpcPort = grpcPort |
|
|
|
dn.PublicUrl = publicUrl |
|
|
|
dn.LastSeen = time.Now().Unix() |
|
|
|
r.LinkChildNode(dn) |
|
|
|
r.doLinkChildNode(dn) |
|
|
|
for diskType, maxVolumeCount := range maxVolumeCounts { |
|
|
|
disk := NewDisk(diskType) |
|
|
|
disk.diskUsages.getOrCreateDisk(types.ToDiskType(diskType)).maxVolumeCount = int64(maxVolumeCount) |
|
|
|