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());
if (canceled)
{
LOG_INFO(
log,
"WriteBufferFromS3 was canceled."
"The file might not be written to S3. "
"{}.",
getVerboseLogDetails());
return;
}
/// That destructor could be call with finalized=false in case of exceptions
if (!finalized && !canceled)