Skip to content

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.

also delete the manifest chunk itself

Chris Lu408e339c53b9
diff --git a/weed/filer2/filer_deletion.go b/weed/filer2/filer_deletion.go
index e3eb0e61fd..dbee4a61d5 100644
--- a/weed/filer2/filer_deletion.go
+++ b/weed/filer2/filer_deletion.go
@@ -81,6 +81,7 @@ func (f *Filer) DeleteChunks(chunks []*filer_pb.FileChunk) {
for _, dChunk := range dataChunks {
f.fileIdDeletionQueue.EnQueue(dChunk.GetFileIdString())
}
+ f.fileIdDeletionQueue.EnQueue(chunk.GetFileIdString())
}
}
diff --git a/weed/filesys/wfs_deletion.go b/weed/filesys/wfs_deletion.go
index 84e903d17f..87a4e907f4 100644
--- a/weed/filesys/wfs_deletion.go
+++ b/weed/filesys/wfs_deletion.go
@@ -29,6 +29,7 @@ func (wfs *WFS) deleteFileChunks(chunks []*filer_pb.FileChunk) {
for _, dChunk := range dataChunks {
fileIds = append(fileIds, dChunk.GetFileIdString())
}
+ fileIds = append(fileIds, chunk.GetFileIdString())
}
wfs.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error {