]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MDSMonitor: remove redundant state change check
author胡玮文 <huww98@outlook.com>
Sun, 9 Jan 2022 15:17:38 +0000 (23:17 +0800)
committer胡玮文 <huww98@outlook.com>
Fri, 12 Aug 2022 01:30:37 +0000 (09:30 +0800)
commitbf75a9ea08084afe4a02083473a7146cb91dae3b
treefbabc6b45f620cb7098b4f03f16757dd9728fdcd
parent0601552b91a1c91314bc6799514f972098b02f30
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>
src/mon/MDSMonitor.cc