not support extreme rto for disaster read

Offering: openGaussDev

More detail:

Match-id-e2dab0fb2cfabc9fd08fd337af8d3b945e6b3d65
This commit is contained in:
openGaussDev
2022-03-09 11:15:15 +08:00
committed by yanghao
parent 14bcd13362
commit 877fbfeb52

View File

@ -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.")));
}