mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
dbms: tiny modification [#METR-13153].
This commit is contained in:
parent
07ba420b85
commit
afc4f7fcf0
@ -2371,13 +2371,15 @@ void StorageReplicatedMergeTree::attachPartition(const Field & field, bool unrep
|
||||
|
||||
LOG_DEBUG(log, "Adding attaches to log");
|
||||
zookeeper->multi(ops);
|
||||
|
||||
size_t i = 0;
|
||||
for (LogEntry & entry : entries)
|
||||
{
|
||||
String log_znode_path = dynamic_cast<zkutil::Op::Create &>(ops[i++]).getPathCreated();
|
||||
String log_znode_path = dynamic_cast<zkutil::Op::Create &>(ops[i]).getPathCreated();
|
||||
entry.znode_name = log_znode_path.substr(log_znode_path.find_last_of('/') + 1);
|
||||
|
||||
waitForAllReplicasToProcessLogEntry(entry);
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user