Skip to content

Commit cb27b21

Browse files
committed
Do not call dir_is_empty() twice again, per commit 1d5f54c
1 parent fa06d8a commit cb27b21

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/dir.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -996,14 +996,6 @@ create_data_directories(const char *data_dir, const char *backup_dir,
996996
linked_path, dir_created, link_name);
997997
}
998998

999-
/*
1000-
* This check was done in check_tablespace_mapping(). But do
1001-
* it again.
1002-
*/
1003-
if (!dir_is_empty(linked_path))
1004-
elog(ERROR, "restore tablespace destination is not empty: \"%s\"",
1005-
linked_path);
1006-
1007999
if (link_sep)
10081000
elog(LOG, "create directory \"%s\" and symbolic link \"%.*s\"",
10091001
linked_path,

0 commit comments

Comments
 (0)