]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: notify_rank_removed correctly nuke highest ranked MON 47086/head
authorKamoltat <ksirivad@redhat.com>
Mon, 25 Apr 2022 19:54:02 +0000 (19:54 +0000)
committerKamoltat <ksirivad@redhat.com>
Wed, 13 Jul 2022 18:44:53 +0000 (18:44 +0000)
commitefa23ba10c1b8942c9f5ac48ee2f15a80566e6d4
treeebcf74772a659ab88c7fcf3476d5aa1df5c09d28
parent69bed3e75e65b2cda16c9fd8dbf7d85e46b3c1ae
mon/Elector: notify_rank_removed correctly nuke highest ranked MON

Added a case where we are removing the highest rank monitor
in `notify_rank_removed`, the old version did not deal with this
since it would only go into the loop when rank_removed < paxos_size().
Therefore, we added an else case for when rank_removed == paxos_size(),
we erase the rank from both `live_pinging` and `dead_pinging` set.

Fixes: https://tracker.ceph.com/issues/55435
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 13f09d0d8a3907ea948343f7d0a092e8ab288439)
src/mon/Elector.cc