mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Sending progress in HTTP headers (continued) [#CLICKHOUSE-32].
This commit is contained in:
parent
6894df0304
commit
18782e1473
@ -79,7 +79,6 @@ private:
|
||||
setResponseDefaultHeaders(response);
|
||||
|
||||
std::tie(response_header_ostr, response_body_ostr) = response.beginSend();
|
||||
out_raw.emplace(*response_body_ostr);
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,11 +116,13 @@ private:
|
||||
ErrorCodes::LOGICAL_ERROR);
|
||||
|
||||
/// Use memory allocated for the outer buffer in the buffer pointed to by out. This avoids extra allocation and copy.
|
||||
out_raw.emplace(*response_body_ostr);
|
||||
deflating_buf.emplace(out_raw.value(), compression_method, compression_level, working_buffer.size(), working_buffer.begin());
|
||||
out = &deflating_buf.value();
|
||||
}
|
||||
else
|
||||
{
|
||||
out_raw.emplace(*response_body_ostr, working_buffer.size(), working_buffer.begin());
|
||||
out = &out_raw.value();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user