From 4cf5f1bf75d04e9edec3136e6f6335e67d70ca28 Mon Sep 17 00:00:00 2001 From: zhang_xubo <2578876417@qq.com> Date: Mon, 19 Sep 2022 22:25:59 +0800 Subject: [PATCH] =?UTF-8?q?gs=5Fctl=20restore=E5=90=8E=E6=9C=AA=E5=8A=A0br?= =?UTF-8?q?eak=E4=BC=9A=E6=89=A7=E8=A1=8Ccopy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/pg_ctl/pg_ctl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/pg_ctl/pg_ctl.cpp b/src/bin/pg_ctl/pg_ctl.cpp index adc707f42..bf0f87de3 100755 --- a/src/bin/pg_ctl/pg_ctl.cpp +++ b/src/bin/pg_ctl/pg_ctl.cpp @@ -6937,13 +6937,15 @@ int main(int argc, char** argv) } else { pg_log(PG_PROGRESS, _("Another gs_ctl command is still running, restore failed.\n")); } + break; case COPY_COMMAND: if (-1 != pg_ctl_lock(pg_ctl_lockfile, &lockfile)) { do_xlog_copy(); (void)pg_ctl_unlock(lockfile); } else { - pg_log(PG_PROGRESS, _("Another gs_ctl command is still running, restore failed.\n")); + pg_log(PG_PROGRESS, _("Another gs_ctl command is still running, copy failed.\n")); } + break; default: break; }