From 2f7cd81a495f7351db35a9902366f578509efb8b Mon Sep 17 00:00:00 2001 From: mujinqiang <1165845907@qq.com> Date: Tue, 13 Jul 2021 11:00:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=ADHA?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/process/postmaster/postmaster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gausskernel/process/postmaster/postmaster.cpp b/src/gausskernel/process/postmaster/postmaster.cpp index c27c5b165..ca3301ff2 100755 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -1,4 +1,4 @@ -/* ------------------------------------------------------------------------- +/* ------------------------------------------------------------------------- * * postmaster.cpp * This program acts as a clearing house for requests to the @@ -3242,7 +3242,7 @@ int ProcessStartupPacket(Port* port, bool SSLdone) #endif } } else if (strcmp(nameptr, "replication") == 0) { - if (IsLocalPort(u_sess->proc_cxt.MyProcPort) && g_instance.attr.attr_common.enable_thread_pool) { + if (!IsHAPort(u_sess->proc_cxt.MyProcPort) && g_instance.attr.attr_common.enable_thread_pool) { ereport(elevel, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("replication should connect HA port in thread_pool"))); From 19cbd11907c9a1100c0a7c4b8c235c25ff8720d3 Mon Sep 17 00:00:00 2001 From: mujinqiang <1165845907@qq.com> Date: Sat, 17 Jul 2021 11:30:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=BF=98=E5=8E=9Funix=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/process/postmaster/postmaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/process/postmaster/postmaster.cpp b/src/gausskernel/process/postmaster/postmaster.cpp index ca3301ff2..8d6c017b5 100755 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -1,4 +1,4 @@ -/* ------------------------------------------------------------------------- +/* ------------------------------------------------------------------------- * * postmaster.cpp * This program acts as a clearing house for requests to the