[MDS] ignore state rollback operation in MDS

This commit is contained in:
fengdeyiji
2024-08-16 09:35:56 +00:00
committed by ob-robot
parent 6b0f3f5f42
commit ca630e2f98

View File

@ -74,8 +74,7 @@ private:
int64_t try_times = 0;
do {
MdsWLockGuard lg(lock_);
if (state_ == TwoPhaseCommitState::ON_PREPARE && new_state == TwoPhaseCommitState::BEFORE_PREPARE) {// due to force majeure
// do nothing, just accept it
if (state_ >= new_state) {
operate_all_nodes_succeed = true;
} else {
operate_all_nodes_succeed = op();