From 7c4acfac5e42c5aeb659369ff91579cc757ff1fe Mon Sep 17 00:00:00 2001 From: liuzhanfeng2 Date: Tue, 25 Jun 2024 20:37:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B6=E8=A1=8C=E5=9B=9E?= =?UTF-8?q?=E6=94=BE=E4=B8=8B=E5=A4=87=E9=9B=86=E7=BE=A4switchover?= =?UTF-8?q?=E9=A6=96=E5=A4=87=E9=99=8D=E5=A4=87=E6=97=B6latch=E9=94=81?= =?UTF-8?q?=E6=9C=AA=E9=87=8A=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storage/access/transam/parallel_recovery/dispatcher.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gausskernel/storage/access/transam/parallel_recovery/dispatcher.cpp b/src/gausskernel/storage/access/transam/parallel_recovery/dispatcher.cpp index be9440e68..2be3f9147 100755 --- a/src/gausskernel/storage/access/transam/parallel_recovery/dispatcher.cpp +++ b/src/gausskernel/storage/access/transam/parallel_recovery/dispatcher.cpp @@ -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); }