From 408e339c53b9b6626e81f1c3f0f2399494bf4ce6 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 31 Aug 2020 00:16:03 -0700 Subject: [PATCH] also delete the manifest chunk itself --- weed/filer2/filer_deletion.go | 1 + weed/filesys/wfs_deletion.go | 1 + 2 files changed, 2 insertions(+) diff --git a/weed/filer2/filer_deletion.go b/weed/filer2/filer_deletion.go index e3eb0e61f..dbee4a61d 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 84e903d17..87a4e907f 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 {