From df9a01585a9d38b032e95f2bcbde2f2ee465ab7c Mon Sep 17 00:00:00 2001 From: Vadim Date: Mon, 17 Sep 2018 15:51:42 +0300 Subject: [PATCH] Update ReplicatedMergeTreeQuorumWriter.h --- .../src/Storages/MergeTree/ReplicatedMergeTreeQuorumWriter.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQuorumWriter.h b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQuorumWriter.h index 85ed1cd39b7..b330cc54738 100644 --- a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQuorumWriter.h +++ b/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQuorumWriter.h @@ -29,6 +29,7 @@ struct ReplicatedMergeTreeQuorumWriter read(old_added_parts); } + /// Write new parts in string with added parts. std::string write(const std::string & part_name) { WriteBufferFromOwnString out; @@ -72,6 +73,7 @@ struct ReplicatedMergeTreeQuorumWriter added_parts = read_v3(in); } + /// Read blocks when node in ZooKeeper suppors multiple partitions. PartitonIdToPartName read_v2(ReadBufferFromString & in) { PartitonIdToPartName parts_in_quorum; @@ -95,6 +97,7 @@ struct ReplicatedMergeTreeQuorumWriter return parts_in_quorum; } + /// Read added bloks when node in ZooKeeper supports only one partition. PartitonIdToPartName read_v3(ReadBufferFromString & in) { PartitonIdToPartName parts_in_quorum; @@ -110,4 +113,4 @@ struct ReplicatedMergeTreeQuorumWriter } }; -} \ No newline at end of file +}