DeleteUncommittedChunks

This commit is contained in:
chrislu 2024-06-15 09:55:22 -07:00
parent 843e778875
commit 64fd233a59

View File

@ -134,7 +134,7 @@ func (fs *FilerServer) doPutAutoChunk(ctx context.Context, w http.ResponseWriter
}
filerResult, replyerr = fs.saveMetaData(ctx, r, fileName, contentType, so, md5bytes, fileChunks, chunkOffset, smallContent)
if replyerr != nil {
fs.filer.DeleteChunks(fileChunks)
fs.filer.DeleteUncommittedChunks(fileChunks)
}
return