fix max volume count reporting
This commit is contained in:
@@ -81,7 +81,7 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if dn.GetMaxVolumeCount() != int64(heartbeat.MaxVolumeCount) {
|
if heartbeat.MaxVolumeCount != 0 && dn.GetMaxVolumeCount() != int64(heartbeat.MaxVolumeCount) {
|
||||||
delta := int64(heartbeat.MaxVolumeCount) - dn.GetMaxVolumeCount()
|
delta := int64(heartbeat.MaxVolumeCount) - dn.GetMaxVolumeCount()
|
||||||
dn.UpAdjustMaxVolumeCountDelta(delta)
|
dn.UpAdjustMaxVolumeCountDelta(delta)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user