]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: notify_rank_removed correctly nuke highest ranked MON 46029/head
authorKamoltat <ksirivad@redhat.com>
Mon, 25 Apr 2022 19:54:02 +0000 (19:54 +0000)
committerKamoltat <ksirivad@redhat.com>
Tue, 31 May 2022 12:19:46 +0000 (12:19 +0000)
commit13f09d0d8a3907ea948343f7d0a092e8ab288439
tree93ca631632737e2b926ea05e10ad10ad4775b788
parentb4376cfe57c5f0e75ce1ed0defbe433429a8daf8
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>
src/mon/Elector.cc