slightly better

This commit is contained in:
Anton Popov 2024-09-02 15:41:35 +00:00
parent 46702f6a1e
commit 8a5454a548
2 changed files with 3 additions and 3 deletions

View File

@ -1963,7 +1963,7 @@ MutationCommands ReplicatedMergeTreeQueue::MutationsSnapshot::getAlterMutationCo
NameSet ReplicatedMergeTreeQueue::MutationsSnapshot::getAllUpdatedColumns() const
{
if (!params.need_data_mutations)
if (!hasDataMutations())
return {};
NameSet res;

View File

@ -2468,7 +2468,7 @@ MutationCommands StorageMergeTree::MutationsSnapshot::getAlterMutationCommandsFo
NameSet StorageMergeTree::MutationsSnapshot::getAllUpdatedColumns() const
{
if (!params.need_data_mutations)
if (!hasDataMutations())
return {};
NameSet res;
@ -2492,7 +2492,7 @@ MergeTreeData::MutationsSnapshotPtr StorageMergeTree::getMutationsSnapshot(const
auto res = std::make_shared<MutationsSnapshot>(params, std::move(info));
bool need_data_mutations = res->params.need_data_mutations && num_data_mutations_to_apply > 0;
bool need_data_mutations = res->hasDataMutations();
bool need_metadata_mutations = num_metadata_mutations_to_apply > 0;
if (!need_data_mutations && !need_metadata_mutations)