SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix wrong volume count
Chris Lua7b1b23c58cb
diff --git a/weed/storage/erasure_coding/ec_shard.go b/weed/storage/erasure_coding/ec_shard.goindex b280157b82..47e6d3d1e0 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) {diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.goindex cc7c7d6e6b..3bb3066492 100644--- a/weed/storage/volume_vacuum.go+++ b/weed/storage/volume_vacuum.go@@ -53,7 +53,7 @@ func (v *Volume) CommitCompact() error {glog.V(0).Infof("fail to close volume %d", v.Id)}v.dataFile = nil- stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "volume").Inc()+ stats.VolumeServerVolumeCounter.WithLabelValues(v.Collection, "volume").Dec()var e errorif e = v.makeupDiff(v.FileName()+".cpd", v.FileName()+".cpx", v.FileName()+".dat", v.FileName()+".idx"); e != nil {