Skip to content

Commit

Permalink
Merge branch 'master' of github.com:yandex/ClickHouse
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Mar 14, 2019
2 parents 3e8d9ec + 1cd7c91 commit cc947da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbms/src/Storages/StorageReplicatedMergeTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3080,7 +3080,8 @@ bool StorageReplicatedMergeTree::optimize(const ASTPtr & query, const ASTPtr & p
}

/// 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);

return true;
Expand Down

0 comments on commit cc947da

Please sign in to comment.