提交 4ae608c8 编写于 作者: A Adam Berlin 提交者: Adam Berlin

fixup! Skip attempts to create target gp tablespace.

上级 ef42c891
......@@ -1315,7 +1315,10 @@ ReceiveAndUnpackTarFile(PGconn *conn, PGresult *res, int rownum)
}
bool is_gp_tablespace_directory = strcmp(gp_tablespace_filename, filename) == 0;
if (is_gp_tablespace_directory) {
if (is_gp_tablespace_directory && !forceoverwrite) {
/*
* This directory has already been created during beginning of BaseBackup().
*/
continue;
}
else if (mkdir(filename, S_IRWXU) != 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册