[bugfix] fix that replaying log after role switched to leader

This commit is contained in:
obdev
2024-02-07 23:36:10 +00:00
committed by ob-robot
parent d63522ff95
commit cbaed137f1
9 changed files with 178 additions and 24 deletions

View File

@ -48,6 +48,10 @@ public:
}
public:
bool is_idle() const
{
return IDLE == ATOMIC_LOAD(&status_);
}
bool acquire()
{
bool bool_ret = false;

View File

@ -574,6 +574,8 @@ class EventTable
EN_UNDO_ACTIONS_SIZE_OVERFLOW = 276,
EN_PART_PLUS_UNDO_OVERFLOW = 277,
EN_HANDLE_PREPARE_MESSAGE_EAGAIN = 278,
EN_RC_ONLY_LEADER_TO_LEADER = 279,
EN_REPLAY_SERVICE_SUBMIT_TASK_SLEEP = 280,
//simulate DAS errors 301-350
EN_DAS_SCAN_RESULT_OVERFLOW = 301,