From d65919d4b9e2afdb3657c8f955c41ce11e2a134a Mon Sep 17 00:00:00 2001 From: lilong Date: Tue, 3 Jan 2023 13:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BD=E6=95=B0VerifyDestDirIsEmptyOrCreate?= =?UTF-8?q?=E5=86=85case=200=E5=88=86=E6=94=AF=E7=BC=BA=E5=B0=91break?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/process/postmaster/pgarch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gausskernel/process/postmaster/pgarch.cpp b/src/gausskernel/process/postmaster/pgarch.cpp index 2be091b33..4322ae26a 100755 --- a/src/gausskernel/process/postmaster/pgarch.cpp +++ b/src/gausskernel/process/postmaster/pgarch.cpp @@ -316,6 +316,7 @@ static void VerifyDestDirIsEmptyOrCreate(char* dirname) if (pg_mkdir_p(dirname, S_IRWXU) == -1) { ereport(FATAL, (errmsg_internal("could not create directory \"%s\": %s\n", dirname, strerror(errno)))); } + break; case -1: /* Access problem */ ereport(FATAL, (errmsg_internal("could not access directory \"%s\": %s\n", dirname, strerror(errno))));