mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
fix d-tor in WriteBufferFromS3
This commit is contained in:
parent
8bdbb8c383
commit
8f81dc49d3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user