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 cutoffTimeAgo in findMissingChunksInFiler (#5132)
Seyed Mahdi Sadegh Shobeiri54ba2c886845
diff --git a/weed/shell/command_volume_fsck.go b/weed/shell/command_volume_fsck.goindex 29c724c49a..7a3932aa17 100644--- a/weed/shell/command_volume_fsck.go+++ b/weed/shell/command_volume_fsck.go@@ -136,7 +136,7 @@ func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io.return fmt.Errorf("read filer buckets path: %v", err)}- collectCutoffFromAtNs := time.Now().UnixNano()+ collectCutoffFromAtNs := time.Now().Add(-*cutoffTimeAgo).UnixNano()// collect each volume file idsfor dataNodeId, volumeIdToVInfo := range dataNodeVolumeIdToVInfo {for volumeId, vinfo := range volumeIdToVInfo {@@ -150,8 +150,7 @@ func (c *commandVolumeFsck) Do(args []string, commandEnv *CommandEnv, writer io.delete(volumeIdToVInfo, volumeId)continue}- cutoffFrom := time.Now().Add(-*cutoffTimeAgo).UnixNano()- err = c.collectOneVolumeFileIds(dataNodeId, volumeId, vinfo, uint64(cutoffFrom))+ err = c.collectOneVolumeFileIds(dataNodeId, volumeId, vinfo, uint64(collectCutoffFromAtNs))if err != nil {return fmt.Errorf("failed to collect file ids from volume %d on %s: %v", volumeId, vinfo.server, err)}