fix concurrent select from system.parts_columns

This commit is contained in:
Nikolai Kochetov 2018-03-12 19:23:48 +03:00
parent 927b5a432e
commit 60ab3294b1

View File

@ -63,7 +63,7 @@ void StorageSystemPartsColumns::processNextStorage(MutableColumns & columns, con
NamesAndTypesList columns_list = info.storage->getColumnsList(); NamesAndTypesList columns_list = info.storage->getColumnsList();
columns_list.insert(std::end(columns_list), std::begin(info.storage->alias_columns), std::end(info.storage->alias_columns)); columns_list.insert(std::end(columns_list), std::begin(info.storage->alias_columns), std::end(info.storage->alias_columns));
column_defaults = info.storage->column_defaults; const auto & column_defaults = info.storage->column_defaults;
std::unordered_map<String, ColumnInfo> columns_info; std::unordered_map<String, ColumnInfo> columns_info;
for (const auto & column : columns_list) for (const auto & column : columns_list)