mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
fix getting number of mutations
This commit is contained in:
parent
a2355673d8
commit
d45f07743c
@ -1358,7 +1358,7 @@ size_t StorageMergeTree::getNumberOfUnfinishedMutations() const
|
|||||||
size_t count = 0;
|
size_t count = 0;
|
||||||
for (const auto & [version, _] : current_mutations_by_version | std::views::reverse)
|
for (const auto & [version, _] : current_mutations_by_version | std::views::reverse)
|
||||||
{
|
{
|
||||||
auto status = getIncompleteMutationsStatusUnlocked(version, lock);
|
auto status = getIncompleteMutationsStatusUnlocked(version, lock, nullptr, true);
|
||||||
if (!status)
|
if (!status)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user