mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Merge pull request #4683 from amosbird/fixempty
Do not wait when there is not log entry.
This commit is contained in:
commit
1cd7c91404
@ -3080,7 +3080,8 @@ bool StorageReplicatedMergeTree::optimize(const ASTPtr & query, const ASTPtr & p
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// TODO: Bad setting name for such purpose
|
/// TODO: Bad setting name for such purpose
|
||||||
if (query_context.getSettingsRef().replication_alter_partitions_sync != 0)
|
if (merge_entry.type != ReplicatedMergeTreeLogEntryData::Type::EMPTY
|
||||||
|
&& query_context.getSettingsRef().replication_alter_partitions_sync != 0)
|
||||||
waitForAllReplicasToProcessLogEntry(merge_entry);
|
waitForAllReplicasToProcessLogEntry(merge_entry);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user