From 7f3a76e9032a627bf0c3d1cf8884920a9494ba4b Mon Sep 17 00:00:00 2001 From: yunlongwang Date: Tue, 28 Nov 2023 14:11:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=A4=87=E6=9C=BA?= =?UTF-8?q?=E5=9B=9E=E6=94=BE=E6=95=B0=E6=8D=AE=E5=BA=93=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E5=88=9B=E5=BB=BA=E5=A4=B1=E8=B4=A5=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/optimizer/commands/tablespace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/optimizer/commands/tablespace.cpp b/src/gausskernel/optimizer/commands/tablespace.cpp index 851dbeb33..a953be97a 100644 --- a/src/gausskernel/optimizer/commands/tablespace.cpp +++ b/src/gausskernel/optimizer/commands/tablespace.cpp @@ -200,7 +200,7 @@ void TablespaceCreateDbspace(Oid spcNode, Oid dbNode, bool isRedo) pfree_ext(parentdir); /* Create database directory */ - if (mkdir(parentdir, S_IRWXU) < 0 && !FILE_ALREADY_EXIST(errno)) + if (mkdir(dir, S_IRWXU) < 0 && !FILE_ALREADY_EXIST(errno)) ereport( ERROR, (errcode_for_file_access(), errmsg("could not create directory \"%s\": %m", dir))); }