From 877fbfeb52f07ca9c521f05ecc3149cc9c184572 Mon Sep 17 00:00:00 2001 From: openGaussDev Date: Wed, 9 Mar 2022 11:15:15 +0800 Subject: [PATCH] not support extreme rto for disaster read Offering: openGaussDev More detail: Match-id-e2dab0fb2cfabc9fd08fd337af8d3b945e6b3d65 --- src/gausskernel/process/postmaster/postmaster.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gausskernel/process/postmaster/postmaster.cpp b/src/gausskernel/process/postmaster/postmaster.cpp index c5223c7b6..944036ea9 100644 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -4020,7 +4020,8 @@ int ProcessStartupPacket(Port* port, bool SSLdone) errmsg("can not accept connection in pending mode."))); } else { #ifdef ENABLE_MULTIPLE_NODES - if (STANDBY_MODE == hashmdata->current_mode && (!IS_DISASTER_RECOVER_MODE || GTM_FREE_MODE)) { + if (STANDBY_MODE == hashmdata->current_mode && (!IS_DISASTER_RECOVER_MODE || GTM_FREE_MODE || + g_instance.attr.attr_storage.recovery_parse_workers > 1)) { ereport(ERROR, (errcode(ERRCODE_CANNOT_CONNECT_NOW), errmsg("can not accept connection in standby mode."))); }