]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: notify_rank_removed correctly nuke highest ranked MON 47087/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:59:03 +0000 (18:59 +0000)
commit03989d33c6af38be9740824154f443013b3bfd9f
treea8e8848072a9d6f00e917033575709fa8012c2f0
parentc5e2739ffd88473dc5f9751b0a34b003883221cb
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