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(volume.fix.replication): adjust volume count, not free volume count (#5479)
steve.wei67ead9b18f0e
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.goindex 9b6a64e6f8..b724f16f99 100644--- a/weed/shell/command_volume_fix_replication.go+++ b/weed/shell/command_volume_fix_replication.go@@ -315,8 +315,8 @@ func (c *commandVolumeFixReplication) fixOneUnderReplicatedVolume(commandEnv *Cofmt.Fprintf(writer, "replicating volume %d %s from %s to dataNode %s ...\n", replica.info.Id, replicaPlacement, replica.location.dataNode.Id, dst.dataNode.Id)if !takeAction {- // adjust free volume count- dst.dataNode.DiskInfos[replica.info.DiskType].FreeVolumeCount--+ // adjust volume count+ dst.dataNode.DiskInfos[replica.info.DiskType].VolumeCount++break}@@ -349,8 +349,8 @@ func (c *commandVolumeFixReplication) fixOneUnderReplicatedVolume(commandEnv *Coreturn err}- // adjust free volume count- dst.dataNode.DiskInfos[replica.info.DiskType].FreeVolumeCount--+ // adjust volume count+ dst.dataNode.DiskInfos[replica.info.DiskType].VolumeCount++break}}