mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
add pedantic check
This commit is contained in:
parent
7600f6031d
commit
bbb271a133
@ -546,14 +546,19 @@ void HTTPHandler::processQuery(
|
||||
used_output.exception_writer = [&, format_name, header, context_, format_settings](WriteBuffer & buf, int code, const String & message)
|
||||
{
|
||||
if (used_output.out_holder->isCanceled())
|
||||
{
|
||||
chassert(buf.isCanceled());
|
||||
return;
|
||||
}
|
||||
|
||||
drainRequestIfNeeded(request, response);
|
||||
used_output.out_holder->setExceptionCode(code);
|
||||
|
||||
auto output_format = FormatFactory::instance().getOutputFormat(format_name, buf, header, context_, format_settings);
|
||||
output_format->setException(message);
|
||||
output_format->finalize();
|
||||
used_output.finalize();
|
||||
used_output.exception_is_written = true;
|
||||
};
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user