From d3f3110316c3d11f7f05fdf035ac33c34627e84d Mon Sep 17 00:00:00 2001 From: stalkerg Date: Thu, 27 Oct 2016 11:47:16 +0300 Subject: [PATCH] Stop creating pg_xlog dir in BACKUP because it is rudiment. --- expected/init.out | 3 --- init.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/expected/init.out b/expected/init.out index e52623a5..cfbec87a 100644 --- a/expected/init.out +++ b/expected/init.out @@ -4,7 +4,6 @@ 0 results/init/backup/ results/init/backup/backup/ -results/init/backup/backup/pg_xlog/ results/init/backup/pg_arman.ini results/init/backup/wal/ ###### INIT COMMAND TEST-0002 ###### @@ -12,7 +11,6 @@ results/init/backup/wal/ 0 results/init/backup/ results/init/backup/backup/ -results/init/backup/backup/pg_xlog/ results/init/backup/pg_arman.ini results/init/backup/wal/ ###### INIT COMMAND TEST-0003 ###### @@ -20,7 +18,6 @@ results/init/backup/wal/ 0 results/init/backup/ results/init/backup/backup/ -results/init/backup/backup/pg_xlog/ results/init/backup/pg_arman.ini results/init/backup/wal/ ###### INIT COMMAND TEST-0004 ###### diff --git a/init.c b/init.c index 2c1e4291..ef895ce0 100644 --- a/init.c +++ b/init.c @@ -50,9 +50,6 @@ do_init(void) /* create directories for backup of online files */ join_path_components(path, backup_path, RESTORE_WORK_DIR); dir_create_dir(path, DIR_PERMISSION); - snprintf(path, lengthof(path), "%s/%s/%s", backup_path, RESTORE_WORK_DIR, - PG_XLOG_DIR); - dir_create_dir(path, DIR_PERMISSION); /* read postgresql.conf */ if (pgdata)