]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MDSMonitor: remove redundant state change check 48270/head
author胡玮文 <huww98@outlook.com>
Sun, 9 Jan 2022 15:17:38 +0000 (23:17 +0800)
committerVenky Shankar <vshankar@redhat.com>
Tue, 27 Sep 2022 07:49:40 +0000 (13:19 +0530)
commit6cb434db094ee36cbb65f451cf33482c05c6d950
tree897791239faa29b9034d7987828739d05f95b93a
parent8378c78cafc38f3eb77f7120f41cfecb2847470d
mon/MDSMonitor: remove redundant state change check

There are two sets of checks to state change in prepare_beacon.
Since the last commit, many of these checks are covered by
`MDSMap::state_transition_valid`. So merging these checks.

This fixes the bug that standby-replay is evicted unexpectedly.
This bug is introduced in
794d13c9ff4 (mon/MDSMonitor: reject illegal want_states from MDS)
but only reveal itself after
20509bb6c82 (MDSMonitor: handle damaged from standby-replay)

Fixes: https://tracker.ceph.com/issues/53811
Signed-off-by: 胡玮文 <huww98@outlook.com>
(cherry picked from commit bf75a9ea08084afe4a02083473a7146cb91dae3b)
src/mon/MDSMonitor.cc