Abort multipart upload faster.

This commit is contained in:
Vitaly Baranov 2023-01-17 18:00:11 +01:00
parent 2de455367a
commit 1a680b0092

View File

@ -338,6 +338,9 @@ namespace
void processUploadTask(UploadPartTask & task)
{
if (multipart_upload_aborted)
return; /// Already aborted.
auto tag = processUploadPartRequest(*task.req);
std::lock_guard lock(bg_tasks_mutex); /// Protect bg_tasks from race