mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
dbms: ALTER: writing to log just before waiting for lock [#METR-2944].
This commit is contained in:
parent
bf4bd07065
commit
75dc9db388
@ -1467,6 +1467,8 @@ void StorageReplicatedMergeTree::alterThread()
|
||||
/// Если описание столбцов изменилось, обновим структуру таблицы локально.
|
||||
if (changed_version)
|
||||
{
|
||||
LOG_INFO(log, "Changed version of 'columns' node in ZooKeeper. Waiting for structure write lock.");
|
||||
|
||||
auto table_lock = lockStructureForAlter();
|
||||
|
||||
const auto columns_changed = columns != data.getColumnsListNonMaterialized();
|
||||
|
Loading…
Reference in New Issue
Block a user