From 46c6897ab59699211c0b1e9c002bde5383906aac Mon Sep 17 00:00:00 2001 From: alesapin Date: Fri, 28 Feb 2020 12:57:45 +0300 Subject: [PATCH] Fix backward compatibility on server side --- dbms/src/Storages/MergeTree/DataPartsExchange.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dbms/src/Storages/MergeTree/DataPartsExchange.cpp b/dbms/src/Storages/MergeTree/DataPartsExchange.cpp index fbb25fa2151..7ca7be733b5 100644 --- a/dbms/src/Storages/MergeTree/DataPartsExchange.cpp +++ b/dbms/src/Storages/MergeTree/DataPartsExchange.cpp @@ -35,7 +35,6 @@ namespace DataPartsExchange namespace { -static constexpr auto REPLICATION_PROTOCOL_VERSION_WITHOUT_PARTS_SIZE = 0; static constexpr auto REPLICATION_PROTOCOL_VERSION_WITH_PARTS_SIZE = 1; static constexpr auto REPLICATION_PROTOCOL_VERSION_WITH_PARTS_SIZE_AND_TTL_INFOS = 2; @@ -58,11 +57,6 @@ void Service::processQuery(const Poco::Net::HTMLForm & params, ReadBuffer & /*bo String part_name = params.get("part"); - if (client_protocol_version != REPLICATION_PROTOCOL_VERSION_WITH_PARTS_SIZE_AND_TTL_INFOS - && client_protocol_version != REPLICATION_PROTOCOL_VERSION_WITH_PARTS_SIZE - && client_protocol_version != REPLICATION_PROTOCOL_VERSION_WITHOUT_PARTS_SIZE) - throw Exception("Unsupported fetch protocol version", ErrorCodes::UNKNOWN_PROTOCOL); - const auto data_settings = data.getSettings(); /// Validation of the input that may come from malicious replica.