!4171 【bugfix】修复主节点按需回放时,重启备节点,主节点卡在PM_WAIT_BACKEND

Merge pull request !4171 from 周聪/bugfix_cannot_create_process
This commit is contained in:
opengauss_bot
2023-09-21 02:05:10 +00:00
committed by Gitee
4 changed files with 28 additions and 5 deletions

View File

@ -68,7 +68,7 @@ static const uint32 BIG_RECORD_LENGTH = XLOG_BLCKSZ * 16;
#define IS_EXRTO_READ (IsExtremeRedo() && g_instance.attr.attr_storage.EnableHotStandby && IsDefaultExtremeRtoMode())
#define IS_EXRTO_STANDBY_READ (IS_EXRTO_READ && pm_state_is_hot_standby())
#define IS_EXRTO_RECOVERY_IN_PROGRESS (RecoveryInProgress() && IsExtremeRedo())
#define IS_EXRTO_RECOVERY_IN_PROGRESS (RecoveryInProgress() && IsExtremeRedo() && IsDefaultExtremeRtoMode())
inline bool is_exrto_standby_read_worker()
{

View File

@ -31,6 +31,8 @@
#define REFORM_WAIT_LONG 100000 /* 0.1 sec */
#define WAIT_REFORM_CTRL_REFRESH_TRIES 1000
#define WAIT_PMSTATE_UPDATE_TRIES 100
#define REFORM_CTRL_VERSION 1
typedef struct SSBroadcastCancelTrx {