From 178302cc5da20681691b37f52827d50da8604d8a Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 17 Jan 2019 17:45:02 +0300 Subject: [PATCH] Miscellaneous #3960 --- .../src/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp b/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp index 261a91c250a..88f4a3ec66f 100644 --- a/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp +++ b/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp @@ -12,11 +12,8 @@ static std::array getSipHash(const String & str) { SipHash hash; hash.update(str.data(), str.size()); - char hash_data[16]; - hash.get128(hash_data); - std::array result; - memcpy(result.data(), hash_data, 16); + hash.get128(result.data()); return result; }