This commit is contained in:
MikhailBurdukov 2023-12-08 13:14:47 +00:00
parent e04416b48f
commit d10217af16

View File

@ -482,7 +482,8 @@ void S3ObjectStorage::copyObjectToAnotherObjectStorage( // NOLINT
catch (S3Exception & exc)
{
/// If authentication/permissions error occurs then fallthrough to copy with buffer.
if (exc.getS3ErrorCode() != Aws::S3::S3Errors::ACCESS_DENIED) throw;
if (exc.getS3ErrorCode() != Aws::S3::S3Errors::ACCESS_DENIED)
throw;
LOG_WARNING(&Poco::Logger::get("S3ObjectStorage"),
"S3-server-side copy object from the disk {} to the disk {} can not be performed: {}\n",
getName(), dest_s3->getName(), exc.what());