1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Fixed #236: Recursive user tablespace symlink.

A tablespace link that referenced another link would not produce an error, but instead skip the tablespace entirely.
This commit is contained in:
David Steele
2016-08-15 17:11:45 -04:00
parent 35931305d7
commit f9fa1270b2
4 changed files with 40 additions and 10 deletions
+8
View File
@@ -1039,6 +1039,14 @@ incr backup - invalid relative tablespace is ../../$PGDATA (db-master host)
ERROR: [146]: tablespace symlink ../../base destination must not be in $PGDATA
INFO: backup stop
incr backup - tablespace link references a link (db-master host)
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-online --log-level-console=detail --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------
INFO: backup start: --no-compress --config=[TEST_PATH]/db-master/pgbackrest.conf --db-path=[TEST_PATH]/db-master/db/base --lock-path=[TEST_PATH]/db-master/repo/lock --log-level-console=detail --log-level-file=trace --log-path=[TEST_PATH]/db-master/repo/log --no-online --repo-path=[TEST_PATH]/db-master/repo --stanza=db --start-fast
INFO: last backup label = [BACKUP-FULL-2], version = [VERSION-1]
ERROR: [145]: link [TEST_PATH]/db-master/db/base/pg_tblspc/99999 ([TEST_PATH]/db-master/db/intermediate_link) cannot reference another link
INFO: backup stop
incr backup - invalid relative tablespace in $PGDATA (db-master host)
> [CONTAINER-EXEC] db-master [BACKREST-BIN] --config=[TEST_PATH]/db-master/pgbackrest.conf --no-online --log-level-console=detail --stanza=db backup
------------------------------------------------------------------------------------------------------------------------------------