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:
tavplubix 2022-02-17 14:01:50 +03:00 committed by GitHub
commit 0f5ee19d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}