Browse Source

refactor

pull/4508/merge
chrislu 6 months ago
parent
commit
843e778875
  1. 6
      weed/filer/filer_deletion.go

6
weed/filer/filer_deletion.go

@ -114,10 +114,14 @@ func (f *Filer) DirectDeleteChunks(chunks []*filer_pb.FileChunk) {
} }
func (f *Filer) DeleteUncommittedChunks(chunks []*filer_pb.FileChunk) { func (f *Filer) DeleteUncommittedChunks(chunks []*filer_pb.FileChunk) {
f.DeleteChunks(chunks)
f.doDeleteChunks(chunks)
} }
func (f *Filer) DeleteChunks(chunks []*filer_pb.FileChunk) { func (f *Filer) DeleteChunks(chunks []*filer_pb.FileChunk) {
f.doDeleteChunks(chunks)
}
func (f *Filer) doDeleteChunks(chunks []*filer_pb.FileChunk) {
for _, chunk := range chunks { for _, chunk := range chunks {
if !chunk.IsChunkManifest { if !chunk.IsChunkManifest {
f.fileIdDeletionQueue.EnQueue(chunk.GetFileIdString()) f.fileIdDeletionQueue.EnQueue(chunk.GetFileIdString())

Loading…
Cancel
Save