mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fix race in system.parts
This commit is contained in:
parent
570d5efcfb
commit
8da9f150de
@ -193,8 +193,9 @@ void StorageSystemParts::processNextStorage(MutableColumns & columns_, const Sto
|
|||||||
add_ttl_info_map(part->ttl_infos.rows_where_ttl);
|
add_ttl_info_map(part->ttl_infos.rows_where_ttl);
|
||||||
|
|
||||||
/// _state column should be the latest.
|
/// _state column should be the latest.
|
||||||
|
/// Do not use part->getState*, it can be changed from different thread
|
||||||
if (has_state_column)
|
if (has_state_column)
|
||||||
columns_[i++]->insert(part->stateString());
|
columns_[i++]->insert(IMergeTreeDataPart::stateToString(part_state));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user