fix wrong volume count

fix https://github.com/chrislusf/seaweedfs/issues/1013
This commit is contained in:
Chris Lu
2019-07-17 00:03:05 -07:00
parent 5b5e443d5b
commit a7b1b23c58
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ func (shard *EcVolumeShard) Close() {
func (shard *EcVolumeShard) Destroy() {
os.Remove(shard.FileName() + ToExt(int(shard.ShardId)))
stats.VolumeServerVolumeCounter.WithLabelValues(shard.Collection, "ec_shards").Inc()
stats.VolumeServerVolumeCounter.WithLabelValues(shard.Collection, "ec_shards").Dec()
}
func (shard *EcVolumeShard) ReadAt(buf []byte, offset int64) (int, error) {