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
docs: update `fileIdsToDelete` var (#3692)
Ryan Russelle0064ae0979f
diff --git a/weed/filer/filer_deletion.go b/weed/filer/filer_deletion.goindex f6279740c6..c948ae713d 100644--- a/weed/filer/filer_deletion.go+++ b/weed/filer/filer_deletion.go@@ -94,10 +94,10 @@ func (f *Filer) doDeleteFileIds(fileIds []string) {}func (f *Filer) DirectDeleteChunks(chunks []*filer_pb.FileChunk) {- var fildIdsToDelete []string+ var fileIdsToDelete []stringfor _, chunk := range chunks {if !chunk.IsChunkManifest {- fildIdsToDelete = append(fildIdsToDelete, chunk.GetFileIdString())+ fileIdsToDelete = append(fileIdsToDelete, chunk.GetFileIdString())continue}dataChunks, manifestResolveErr := ResolveOneChunkManifest(f.MasterClient.LookupFileId, chunk)@@ -105,12 +105,12 @@ func (f *Filer) DirectDeleteChunks(chunks []*filer_pb.FileChunk) {glog.V(0).Infof("failed to resolve manifest %s: %v", chunk.FileId, manifestResolveErr)}for _, dChunk := range dataChunks {- fildIdsToDelete = append(fildIdsToDelete, dChunk.GetFileIdString())+ fileIdsToDelete = append(fileIdsToDelete, dChunk.GetFileIdString())}- fildIdsToDelete = append(fildIdsToDelete, chunk.GetFileIdString())+ fileIdsToDelete = append(fileIdsToDelete, chunk.GetFileIdString())}- f.doDeleteFileIds(fildIdsToDelete)+ f.doDeleteFileIds(fileIdsToDelete)}func (f *Filer) DeleteChunks(chunks []*filer_pb.FileChunk) {