mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
slightly better
This commit is contained in:
parent
46702f6a1e
commit
8a5454a548
@ -1963,7 +1963,7 @@ MutationCommands ReplicatedMergeTreeQueue::MutationsSnapshot::getAlterMutationCo
|
||||
|
||||
NameSet ReplicatedMergeTreeQueue::MutationsSnapshot::getAllUpdatedColumns() const
|
||||
{
|
||||
if (!params.need_data_mutations)
|
||||
if (!hasDataMutations())
|
||||
return {};
|
||||
|
||||
NameSet res;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user