mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix tests
This commit is contained in:
parent
7dab7ae9a4
commit
2280aa5e30
@ -1474,8 +1474,6 @@ void ClientBase::resetOutput()
|
||||
out_file_buf->finalize();
|
||||
out_file_buf.reset();
|
||||
|
||||
if (out_logs_buf)
|
||||
out_logs_buf->finalize();
|
||||
out_logs_buf.reset();
|
||||
|
||||
if (pager_cmd)
|
||||
|
@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <base/StringRef.h>
|
||||
#include "Common/Logger.h"
|
||||
#include <Common/Logger.h>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <Processors/ISimpleTransform.h>
|
||||
|
||||
#include <base/defines.h>
|
||||
#include "Common/Logger.h"
|
||||
#include <Common/Logger.h>
|
||||
|
||||
|
||||
namespace DB
|
||||
|
@ -686,15 +686,17 @@ void TCPHandler::runImpl()
|
||||
if (state.empty() || state.cancellation_status == CancellationStatus::FULLY_CANCELLED)
|
||||
{
|
||||
state.cancelOut();
|
||||
state.reset();
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
state.finalizeOut();
|
||||
}
|
||||
|
||||
|
||||
/// QueryState should be cleared before QueryScope, since otherwise
|
||||
/// the MemoryTracker will be wrong for possible deallocations.
|
||||
/// (i.e. deallocations from the Aggregator with two-level aggregation)
|
||||
/// Also it resets socket's timeouts.
|
||||
state.finalizeOut();
|
||||
state.reset();
|
||||
last_sent_snapshots = ProfileEvents::ThreadIdToCountersSnapshot{};
|
||||
query_scope.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user