1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-03-17 21:18:00 +02:00

Do not call dir_is_empty() twice again, per commit 1d5f54c5

This commit is contained in:
Arthur Zakirov 2018-10-12 18:09:45 +03:00
parent fa06d8a66c
commit cb27b21b72

View File

@ -996,14 +996,6 @@ create_data_directories(const char *data_dir, const char *backup_dir,
linked_path, dir_created, link_name);
}
/*
* This check was done in check_tablespace_mapping(). But do
* it again.
*/
if (!dir_is_empty(linked_path))
elog(ERROR, "restore tablespace destination is not empty: \"%s\"",
linked_path);
if (link_sep)
elog(LOG, "create directory \"%s\" and symbolic link \"%.*s\"",
linked_path,