提交 4e737cd7 编写于 作者: A alesapin 提交者: Alexander Tokmakov

Merge pull request #20226 from ClickHouse/fix_race_in_system_parts

Fix benign race in system.parts

(cherry picked from commit 9179fc8d)
上级 49961df4
......@@ -183,8 +183,9 @@ void StorageSystemParts::processNextStorage(MutableColumns & columns_, const Sto
add_ttl_info_map(part->ttl_infos.recompression_ttl);
/// _state column should be the latest.
/// Do not use part->getState*, it can be changed from different thread
if (has_state_column)
columns_[i++]->insert(part->stateString());
columns_[i++]->insert(IMergeTreeDataPart::stateToString(part_state));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册