mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
temp-commit
This commit is contained in:
parent
e3dd7b6668
commit
c40dae940e
@ -542,7 +542,7 @@ void HTTPHandler::processQuery(
|
|||||||
|
|
||||||
applyHTTPResponseHeaders(response, http_response_headers_override);
|
applyHTTPResponseHeaders(response, http_response_headers_override);
|
||||||
|
|
||||||
auto set_query_result = [&response, this] (const QueryResultDetails & details)
|
auto set_query_result = [&response, &used_output, this] (const QueryResultDetails & details)
|
||||||
{
|
{
|
||||||
response.add("X-ClickHouse-Query-Id", details.query_id);
|
response.add("X-ClickHouse-Query-Id", details.query_id);
|
||||||
|
|
||||||
@ -555,6 +555,10 @@ void HTTPHandler::processQuery(
|
|||||||
|
|
||||||
if (details.timezone)
|
if (details.timezone)
|
||||||
response.add("X-ClickHouse-Timezone", *details.timezone);
|
response.add("X-ClickHouse-Timezone", *details.timezone);
|
||||||
|
|
||||||
|
/// Start sending headers early, as it requires access to the internal
|
||||||
|
/// WriteBuffer, which may also be used concurrently by compressing wrapper.
|
||||||
|
used_output.out_holder->startSendHeadersPublic();
|
||||||
};
|
};
|
||||||
|
|
||||||
auto handle_exception_in_output_format = [&](IOutputFormat & current_output_format, const String & format_name, const ContextPtr & context_, const std::optional<FormatSettings> & format_settings)
|
auto handle_exception_in_output_format = [&](IOutputFormat & current_output_format, const String & format_name, const ContextPtr & context_, const std::optional<FormatSettings> & format_settings)
|
||||||
@ -587,10 +591,6 @@ void HTTPHandler::processQuery(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Start sending headers early, as it requires access to the internal
|
|
||||||
/// WriteBuffer, which may also be used concurrently by compressing wrapper.
|
|
||||||
used_output.out_holder->startSendHeadersPublic();
|
|
||||||
|
|
||||||
executeQuery(
|
executeQuery(
|
||||||
*in,
|
*in,
|
||||||
*used_output.out_maybe_delayed_and_compressed,
|
*used_output.out_maybe_delayed_and_compressed,
|
||||||
|
Loading…
Reference in New Issue
Block a user