Remove duplicate code in copyS3File.cpp

This commit is contained in:
YenchangChan 2024-03-18 20:14:46 +08:00
parent 134215e3c3
commit e7aa23d332

View File

@ -194,11 +194,6 @@ namespace
auto outcome = client_ptr->CompleteMultipartUpload(request); auto outcome = client_ptr->CompleteMultipartUpload(request);
if (blob_storage_log)
blob_storage_log->addEvent(BlobStorageLogElement::EventType::MultiPartUploadComplete,
dest_bucket, dest_key, /* local_path_ */ {}, /* data_size */ 0,
outcome.IsSuccess() ? nullptr : &outcome.GetError());
if (blob_storage_log) if (blob_storage_log)
blob_storage_log->addEvent(BlobStorageLogElement::EventType::MultiPartUploadComplete, blob_storage_log->addEvent(BlobStorageLogElement::EventType::MultiPartUploadComplete,
dest_bucket, dest_key, /* local_path_ */ {}, /* data_size */ 0, dest_bucket, dest_key, /* local_path_ */ {}, /* data_size */ 0,