mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix stats when a collection is deleted
This commit is contained in:
parent
055374a50b
commit
56eb522b13
|
@ -250,6 +250,11 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {
|
|||
}
|
||||
if !deleteVolume {
|
||||
collectionVolumeSize[v.Collection] += volumeMessage.Size
|
||||
} else {
|
||||
collectionVolumeSize[v.Collection] -= volumeMessage.Size
|
||||
if collectionVolumeSize[v.Collection] <= 0 {
|
||||
delete(collectionVolumeSize, v.Collection)
|
||||
}
|
||||
}
|
||||
|
||||
if _, exist := collectionVolumeReadOnlyCount[v.Collection]; !exist {
|
||||
|
|
Loading…
Reference in a new issue