mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
fixing tests
This commit is contained in:
parent
e4050334bb
commit
99167d3b87
@ -73,7 +73,7 @@ namespace ErrorCodes
|
|||||||
Connection::~Connection()
|
Connection::~Connection()
|
||||||
{
|
{
|
||||||
if (connected)
|
if (connected)
|
||||||
disconnect();
|
Connection::disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
Connection::Connection(const String & host_, UInt16 port_,
|
Connection::Connection(const String & host_, UInt16 port_,
|
||||||
|
@ -147,6 +147,7 @@ void WriteBufferFromHDFS::finalizeImpl()
|
|||||||
|
|
||||||
WriteBufferFromHDFS::~WriteBufferFromHDFS()
|
WriteBufferFromHDFS::~WriteBufferFromHDFS()
|
||||||
{
|
{
|
||||||
|
if (!canceled)
|
||||||
finalize();
|
finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@ void StorageObjectStorageSink::onCancel()
|
|||||||
{
|
{
|
||||||
std::lock_guard lock(cancel_mutex);
|
std::lock_guard lock(cancel_mutex);
|
||||||
cancelBuffers();
|
cancelBuffers();
|
||||||
cancelled = true;
|
|
||||||
releaseBuffers();
|
releaseBuffers();
|
||||||
|
cancelled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StorageObjectStorageSink::onException(std::exception_ptr)
|
void StorageObjectStorageSink::onException(std::exception_ptr)
|
||||||
|
Loading…
Reference in New Issue
Block a user