Skip to content

Commit d3f3110

Browse files
committed
Stop creating pg_xlog dir in BACKUP because it is rudiment.
1 parent b0a63b6 commit d3f3110

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

expected/init.out

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,20 @@
44
0
55
results/init/backup/
66
results/init/backup/backup/
7-
results/init/backup/backup/pg_xlog/
87
results/init/backup/pg_arman.ini
98
results/init/backup/wal/
109
###### INIT COMMAND TEST-0002 ######
1110
###### success with archive_command and log_directory ######
1211
0
1312
results/init/backup/
1413
results/init/backup/backup/
15-
results/init/backup/backup/pg_xlog/
1614
results/init/backup/pg_arman.ini
1715
results/init/backup/wal/
1816
###### INIT COMMAND TEST-0003 ######
1917
###### success without archive_command ######
2018
0
2119
results/init/backup/
2220
results/init/backup/backup/
23-
results/init/backup/backup/pg_xlog/
2421
results/init/backup/pg_arman.ini
2522
results/init/backup/wal/
2623
###### INIT COMMAND TEST-0004 ######

init.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ do_init(void)
5050
/* create directories for backup of online files */
5151
join_path_components(path, backup_path, RESTORE_WORK_DIR);
5252
dir_create_dir(path, DIR_PERMISSION);
53-
snprintf(path, lengthof(path), "%s/%s/%s", backup_path, RESTORE_WORK_DIR,
54-
PG_XLOG_DIR);
55-
dir_create_dir(path, DIR_PERMISSION);
5653

5754
/* read postgresql.conf */
5855
if (pgdata)

0 commit comments

Comments
 (0)