mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-05-06 06:37:49 +08:00
batch delete file ids
This commit is contained in:
parent
06474e5990
commit
b318167cd3
@ -231,9 +231,11 @@ func (f *Filer) cacheSetDirectory(dirpath string, dirEntry *Entry, level int) {
|
||||
}
|
||||
|
||||
func (f *Filer) DeleteChunks(chunks []*filer_pb.FileChunk) {
|
||||
var fileIds []string
|
||||
for _, chunk := range chunks {
|
||||
f.DeleteFileByFileId(chunk.FileId)
|
||||
fileIds = append(fileIds, chunk.FileId)
|
||||
}
|
||||
operation.DeleteFiles(f.GetMaster(), fileIds)
|
||||
}
|
||||
|
||||
func (f *Filer) DeleteFileByFileId(fileId string) {
|
||||
|
Loading…
Reference in New Issue
Block a user