aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/erasure_coding
diff options
context:
space:
mode:
authorsteve.wei <coderushing@gmail.com>2024-04-17 19:49:50 +0800
committerGitHub <noreply@github.com>2024-04-17 04:49:50 -0700
commit0bdf121e519534cbf4af64bb3423eb3bdb858ad0 (patch)
tree57457b1e479fde25ad3115aba879b4b916fb6ea9 /weed/storage/erasure_coding
parent37019477bc68f0f3ed83e39034b455622b35b383 (diff)
downloadseaweedfs-0bdf121e519534cbf4af64bb3423eb3bdb858ad0.tar.xz
seaweedfs-0bdf121e519534cbf4af64bb3423eb3bdb858ad0.zip
rename VolumeServerVolumeGauge (#5504)
Diffstat (limited to 'weed/storage/erasure_coding')
-rw-r--r--weed/storage/erasure_coding/ec_shard.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/erasure_coding/ec_shard.go b/weed/storage/erasure_coding/ec_shard.go
index 19ee17636..9fcb11525 100644
--- a/weed/storage/erasure_coding/ec_shard.go
+++ b/weed/storage/erasure_coding/ec_shard.go
@@ -44,7 +44,7 @@ func NewEcVolumeShard(diskType types.DiskType, dirname string, collection string
}
v.ecdFileSize = ecdFi.Size()
- stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "ec_shards").Inc()
+ stats.VolumeServerVolumeGauge.WithLabelValues(v.Collection, "ec_shards").Inc()
return
}
@@ -88,7 +88,7 @@ func (shard *EcVolumeShard) Close() {
func (shard *EcVolumeShard) Destroy() {
os.Remove(shard.FileName() + ToExt(int(shard.ShardId)))
- stats.VolumeServerVolumeCounter.WithLabelValues(shard.Collection, "ec_shards").Dec()
+ stats.VolumeServerVolumeGauge.WithLabelValues(shard.Collection, "ec_shards").Dec()
}
func (shard *EcVolumeShard) ReadAt(buf []byte, offset int64) (int, error) {