dbms: tiny improvement [#METR-2944].

This commit is contained in:
Alexey Milovidov 2014-11-30 10:00:05 +03:00
parent 92e5793c8e
commit 5fae38cb97

View File

@ -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;