Fix protocol check

This commit is contained in:
alesapin 2020-06-26 14:38:37 +03:00
parent 6f1824f0ea
commit 6caf2e7a3f

View File

@ -279,7 +279,7 @@ MergeTreeData::MutableDataPartPtr Fetcher::fetchPart(
}
String part_type = "Wide";
if (server_protocol_version >= REPLICATION_PROTOCOL_VERSION_WITH_PARTS_SIZE)
if (server_protocol_version >= REPLICATION_PROTOCOL_VERSION_WITH_PARTS_TYPE)
readStringBinary(part_type, in);
return part_type == "InMemory" ? downloadPartToMemory(part_name, metadata_snapshot, std::move(reservation), in)