mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Better [#METR-18510].
This commit is contained in:
parent
a8f423a74c
commit
c8d87e8a24
@ -374,7 +374,7 @@ void Cluster::assignName()
|
|||||||
SHA512_Init(&ctx);
|
SHA512_Init(&ctx);
|
||||||
|
|
||||||
for (const auto & host : elements)
|
for (const auto & host : elements)
|
||||||
SHA512_Update(&ctx, reinterpret_cast<const void *>(host.data()), host.size());
|
SHA512_Update(&ctx, reinterpret_cast<const void *>(host.c_str()), host.size() + 1);
|
||||||
|
|
||||||
SHA512_Final(hash, &ctx);
|
SHA512_Final(hash, &ctx);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user