fix d-tor in WriteBufferFromS3

This commit is contained in:
Sema Checherinda 2024-06-24 16:50:45 +02:00
parent 8bdbb8c383
commit 8f81dc49d3

View File

@ -270,12 +270,15 @@ WriteBufferFromS3::~WriteBufferFromS3()
LOG_TRACE(limitedLog, "Close WriteBufferFromS3. {}.", getShortLogDetails()); LOG_TRACE(limitedLog, "Close WriteBufferFromS3. {}.", getShortLogDetails());
if (canceled) if (canceled)
{
LOG_INFO( LOG_INFO(
log, log,
"WriteBufferFromS3 was canceled." "WriteBufferFromS3 was canceled."
"The file might not be written to S3. " "The file might not be written to S3. "
"{}.", "{}.",
getVerboseLogDetails()); getVerboseLogDetails());
return;
}
/// That destructor could be call with finalized=false in case of exceptions /// That destructor could be call with finalized=false in case of exceptions
if (!finalized && !canceled) if (!finalized && !canceled)