No need to intersect with config_server if agree_server is defined in… … terms of config_server. (#4437)

Co-authored-by: Heidi Howard <1835251+heidihoward@users.noreply.github.com>
Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
This commit is contained in:
Markus Alexander Kuppe 2022-11-01 04:36:01 -07:00 коммит произвёл GitHub
Родитель 122d9ffd79
Коммит 69b0686e8a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -552,9 +552,8 @@ AdvanceCommitIndex(i) ==
\* In all of these configs, we now need a quorum in the servers that have the correct matchIndex
LET config_servers == currentConfiguration[i][config_index][2]
required_quorum == Quorums[config_servers]
agree_servers == {i} \cup {k \in Servers :
matchIndex[i][k] >= new_index}
IN (agree_servers \cap config_servers) \in required_quorum
agree_servers == {k \in config_servers : matchIndex[i][k] >= new_index}
IN (IF i \in config_servers THEN {i} ELSE {}) \cup agree_servers \in required_quorum
\* only advance if necessary (this is basically a sanity check after the Min above)
/\ commitIndex[i] < new_index
/\ commitIndex' = [commitIndex EXCEPT ![i] = new_index]