mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #34633 from zhangjmruc/master
For ReplatedMergeTree, early break for multiple leaders case when log has been updated by the other leader
This commit is contained in:
commit
0f5ee19d0b
@ -3065,7 +3065,8 @@ void StorageReplicatedMergeTree::mergeSelectingTask()
|
||||
desired_mutation_version->second,
|
||||
merge_pred.getVersion());
|
||||
|
||||
if (create_result == CreateMergeEntryResult::Ok)
|
||||
if (create_result == CreateMergeEntryResult::Ok ||
|
||||
create_result == CreateMergeEntryResult::LogUpdated)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user