This commit is contained in:
chrislu
2024-06-15 09:39:49 -07:00
parent 8aae82dd71
commit 677cfb8ad1
5 changed files with 10 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque
wg.Wait()
if uploadErr != nil {
fs.filer.DeleteChunks(fileChunks)
fs.filer.DeleteUncommittedChunks(fileChunks)
return nil, md5Hash, 0, uploadErr, nil
}
slices.SortFunc(fileChunks, func(a, b *filer_pb.FileChunk) int {