also delete the manifest chunk itself
This commit is contained in:
@@ -81,6 +81,7 @@ func (f *Filer) DeleteChunks(chunks []*filer_pb.FileChunk) {
|
|||||||
for _, dChunk := range dataChunks {
|
for _, dChunk := range dataChunks {
|
||||||
f.fileIdDeletionQueue.EnQueue(dChunk.GetFileIdString())
|
f.fileIdDeletionQueue.EnQueue(dChunk.GetFileIdString())
|
||||||
}
|
}
|
||||||
|
f.fileIdDeletionQueue.EnQueue(chunk.GetFileIdString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ func (wfs *WFS) deleteFileChunks(chunks []*filer_pb.FileChunk) {
|
|||||||
for _, dChunk := range dataChunks {
|
for _, dChunk := range dataChunks {
|
||||||
fileIds = append(fileIds, dChunk.GetFileIdString())
|
fileIds = append(fileIds, dChunk.GetFileIdString())
|
||||||
}
|
}
|
||||||
|
fileIds = append(fileIds, chunk.GetFileIdString())
|
||||||
}
|
}
|
||||||
|
|
||||||
wfs.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error {
|
wfs.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user