aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/erasure_coding/ec_shard.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-07-17 00:03:05 -0700
committerChris Lu <chris.lu@gmail.com>2019-07-17 00:03:15 -0700
commita7b1b23c58cbde798945be9caa6144c9e3399cf2 (patch)
tree3d64e00d3f6ada4d611f88ee417aa082dfe9905a /weed/storage/erasure_coding/ec_shard.go
parent5b5e443d5b9985fd77f3d5470f1d5885a88bf2b9 (diff)
downloadseaweedfs-a7b1b23c58cbde798945be9caa6144c9e3399cf2.tar.xz
seaweedfs-a7b1b23c58cbde798945be9caa6144c9e3399cf2.zip
fix wrong volume count
fix https://github.com/chrislusf/seaweedfs/issues/1013
Diffstat (limited to 'weed/storage/erasure_coding/ec_shard.go')
-rw-r--r--weed/storage/erasure_coding/ec_shard.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/erasure_coding/ec_shard.go b/weed/storage/erasure_coding/ec_shard.go
index b280157b8..47e6d3d1e 100644
--- a/weed/storage/erasure_coding/ec_shard.go
+++ b/weed/storage/erasure_coding/ec_shard.go
@@ -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) {