mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
add missing comments
This commit is contained in:
parent
f224269d41
commit
c30bdecf6d
@ -77,6 +77,8 @@ struct ReplicatedMergeTreeLogEntryData
|
||||
bool deduplicate = false; /// Do deduplicate on merge
|
||||
String column_name;
|
||||
|
||||
/// Force filter by TTL in 'OPTIMIZE ... FINAL' query to remove expired values from old parts
|
||||
/// without TTL infos or with outdated TTL infos, e.g. after 'ALTER ... MODIFY TTL' query.
|
||||
bool force_ttl = false;
|
||||
|
||||
/// For DROP_RANGE, true means that the parts need not be deleted, but moved to the `detached` directory.
|
||||
|
@ -590,7 +590,10 @@ bool StorageMergeTree::merge(
|
||||
|
||||
try
|
||||
{
|
||||
/// Force filter by TTL in 'OPTIMIZE ... FINAL' query to remove expired values from old parts
|
||||
/// without TTL infos or with outdated TTL infos, e.g. after 'ALTER ... MODIFY TTL' query.
|
||||
bool force_ttl = (final && (hasTableTTL() || hasAnyColumnTTL()));
|
||||
|
||||
new_part = merger_mutator.mergePartsToTemporaryPart(
|
||||
future_part, *merge_entry, time(nullptr),
|
||||
merging_tagger->reserved_space.get(), deduplicate, force_ttl);
|
||||
|
Loading…
Reference in New Issue
Block a user