From 208ceb20c757712748a21d442ebd4d7d0a0f14a0 Mon Sep 17 00:00:00 2001 From: chenzhikai <895543892@qq.com> Date: Thu, 15 Jun 2023 14:33:55 +0800 Subject: [PATCH] =?UTF-8?q?pg=5Fctl=E5=9C=A8=E9=9D=9E=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=B1=A0=E5=8C=96=E5=9C=BA=E6=99=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/pg_ctl/pg_ctl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bin/pg_ctl/pg_ctl.cpp b/src/bin/pg_ctl/pg_ctl.cpp index 3d72a582f9..a2204c21dd 100755 --- a/src/bin/pg_ctl/pg_ctl.cpp +++ b/src/bin/pg_ctl/pg_ctl.cpp @@ -7246,13 +7246,11 @@ static int get_instance_id(void) static int ss_get_primary_id(void) { if (instance_config.dss.socketpath == NULL) { - pg_log(PG_WARNING, _("socketpath cannot be NULL when enable dss\n")); - exit(1); + return -1; } if (instance_config.dss.vgname == NULL) { - pg_log(PG_WARNING, _("the DATADIR is not correct with enable dss\n")); - exit(1); + return -1; } int fd = -1; -- Gitee