mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
dbms: tiny improvement [#METR-2944].
This commit is contained in:
parent
92e5793c8e
commit
5fae38cb97
@ -67,10 +67,13 @@ MergeTreeData::MutableDataPartPtr ReplicatedMergeTreePartsFetcher::fetchPart(
|
|||||||
int port,
|
int port,
|
||||||
bool to_detached)
|
bool to_detached)
|
||||||
{
|
{
|
||||||
ReadBufferFromHTTP::Params params = {
|
ReadBufferFromHTTP::Params params =
|
||||||
std::make_pair("endpoint", "ReplicatedMergeTree:" + replica_path),
|
{
|
||||||
std::make_pair("part", part_name),
|
{"endpoint", "ReplicatedMergeTree:" + replica_path},
|
||||||
std::make_pair("compress", "false")};
|
{"part", part_name},
|
||||||
|
{"compress", "false"}
|
||||||
|
};
|
||||||
|
|
||||||
ReadBufferFromHTTP in(host, port, params);
|
ReadBufferFromHTTP in(host, port, params);
|
||||||
|
|
||||||
String full_part_name = String(to_detached ? "detached/" : "") + "tmp_" + part_name;
|
String full_part_name = String(to_detached ? "detached/" : "") + "tmp_" + part_name;
|
||||||
|
Loading…
Reference in New Issue
Block a user