@@ -30,6 +30,15 @@ do_archive_push(char *wal_file_path, char *wal_file_name)
30
30
int64 system_id ;
31
31
pgBackupConfig * config ;
32
32
33
+ if (wal_file_name == NULL && wal_file_path == NULL )
34
+ elog (ERROR , "required parameters are not specified: --wal_file_name %%f --wal_file_path %%p" );
35
+
36
+ if (wal_file_name == NULL )
37
+ elog (ERROR , "required parameter not specified: --wal_file_name %%f" );
38
+
39
+ if (wal_file_path == NULL )
40
+ elog (ERROR , "required parameter not specified: --wal_file_path %%p" );
41
+
33
42
if (!getcwd (current_dir , sizeof (current_dir )))
34
43
elog (ERROR , "getcwd() error" );
35
44
@@ -74,6 +83,15 @@ do_archive_get(char *wal_file_path, char *wal_file_name)
74
83
char absolute_wal_file_path [MAXPGPATH ];
75
84
char current_dir [MAXPGPATH ];
76
85
86
+ if (wal_file_name == NULL && wal_file_path == NULL )
87
+ elog (ERROR , "required parameters are not specified: --wal_file_name %%f --wal_file_path %%p" );
88
+
89
+ if (wal_file_name == NULL )
90
+ elog (ERROR , "required parameter not specified: --wal_file_name %%f" );
91
+
92
+ if (wal_file_path == NULL )
93
+ elog (ERROR , "required parameter not specified: --wal_file_path %%p" );
94
+
77
95
if (!getcwd (current_dir , sizeof (current_dir )))
78
96
elog (ERROR , "getcwd() error" );
79
97
0 commit comments