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());
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user