Update src/Storages/MergeTree/MergeTreeData.cpp

Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
This commit is contained in:
KitKatKKK 2023-02-10 21:14:42 +08:00 committed by GitHub
parent 7664114349
commit d31457de44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5314,6 +5314,7 @@ size_t MergeTreeData::getAllPartsCount() const
size_t MergeTreeData::getTotalMarksCount() const
{
size_t total_marks = 0;
auto lock = lockParts();
for (auto & part : data_parts_by_info)
{
total_marks += part->getMarksCount();