mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 02:53:38 +00:00
ensure force_restore_data is removed from zk
This commit is contained in:
parent
eaa7096c4e
commit
d54f739836
@ -142,6 +142,9 @@ void ReplicatedMergeTreeAttachThread::runImpl()
|
||||
|
||||
checkHasReplicaMetadataInZooKeeper(zookeeper, replica_path);
|
||||
|
||||
/// Just in case it was not removed earlier due to connection loss
|
||||
zookeeper->tryRemove(replica_path + "/flags/force_restore_data");
|
||||
|
||||
String replica_metadata_version;
|
||||
const bool replica_metadata_version_exists = zookeeper->tryGet(replica_path + "/metadata_version", replica_metadata_version);
|
||||
if (replica_metadata_version_exists)
|
||||
|
Loading…
Reference in New Issue
Block a user