Update src/Storages/MergeTree/ReplicatedMergeTreeAttachThread.cpp

Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
This commit is contained in:
Alexander Tokmakov 2022-09-27 14:26:45 +03:00 committed by GitHub
parent 0f6a44efef
commit 19062e9d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ void ReplicatedMergeTreeAttachThread::runImpl()
const bool replica_metadata_version_exists = zookeeper->tryGet(replica_path + "/metadata_version", replica_metadata_version); const bool replica_metadata_version_exists = zookeeper->tryGet(replica_path + "/metadata_version", replica_metadata_version);
if (replica_metadata_version_exists) if (replica_metadata_version_exists)
{ {
storage.metadata_version = parse<int>(zookeeper->get(replica_path + "/metadata_version")); storage.metadata_version = parse<int>(replica_metadata_version);
} }
else else
{ {