Browse Source

DeleteUncommittedChunks

pull/4508/merge
chrislu 6 months ago
parent
commit
64fd233a59
  1. 2
      weed/server/filer_server_handlers_write_autochunk.go

2
weed/server/filer_server_handlers_write_autochunk.go

@ -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) filerResult, replyerr = fs.saveMetaData(ctx, r, fileName, contentType, so, md5bytes, fileChunks, chunkOffset, smallContent)
if replyerr != nil { if replyerr != nil {
fs.filer.DeleteChunks(fileChunks)
fs.filer.DeleteUncommittedChunks(fileChunks)
} }
return return

Loading…
Cancel
Save