修复并行回放下备集群switchover首备降备时latch锁未释放问题

This commit is contained in:
liuzhanfeng2
2024-06-25 20:37:38 +08:00
committed by yaoxin
parent 5691bf976c
commit 7c4acfac5e

View File

@ -2552,6 +2552,11 @@ static void HandleStartupProcInterruptsForParallelRedo(void)
* Check if we were requested to exit without finishing recovery.
*/
if (t_thrd.startup_cxt.shutdown_requested && SmartShutdown != g_instance.status) {
if (t_thrd.xlog_cxt.StandbyModeRequested && SS_DISASTER_MAIN_STANDBY_NODE) {
ereport(LOG, (errmsg("dorado standby cluster switchover shutdown startup at parallel redo\n")));
DisownLatch(&t_thrd.shemem_ptr_cxt.XLogCtl->recoveryWakeupLatch);
DisownLatch(&t_thrd.shemem_ptr_cxt.XLogCtl->dataRecoveryLatch);
}
proc_exit(1);
}