@@ -164,10 +164,15 @@ do_archive_push(InstanceConfig *instance, char *wal_file_path,
164
164
char backup_wal_file_path [MAXPGPATH ];
165
165
char absolute_wal_file_path [MAXPGPATH ];
166
166
167
- join_path_components (absolute_wal_file_path , current_dir , wal_file_path );
167
+ join_path_components (absolute_wal_file_path , wal_file_path , wal_file_name );
168
168
join_path_components (backup_wal_file_path , instance -> arclog_path , wal_file_name );
169
169
170
170
elog (INFO , "wal_file_path is setted by user %s" , wal_file_path );
171
+
172
+ if ((batch_size > 1 )|| (num_threads > 1 ))
173
+ elog (WARNING , "Options -j and --batch-size are ignored "
174
+ "with --wal-file-path setted by user" );
175
+
171
176
if (instance -> compress_alg == PGLZ_COMPRESS )
172
177
elog (ERROR , "pglz compression is not supported" );
173
178
@@ -959,6 +964,9 @@ push_wal_file(const char *from_path, const char *to_path, bool is_compress,
959
964
#endif
960
965
to_path_p = to_path ;
961
966
967
+ // elog(INFO, "from_path %s", from_path);
968
+ // Assert(0);
969
+
962
970
/* open file for read */
963
971
in = fio_fopen (from_path , PG_BINARY_R , FIO_DB_HOST );
964
972
if (in == NULL )
@@ -1066,6 +1074,8 @@ push_wal_file(const char *from_path, const char *to_path, bool is_compress,
1066
1074
1067
1075
read_len = fio_fread (in , buf , sizeof (buf ));
1068
1076
1077
+ // Assert(0);
1078
+
1069
1079
if (read_len < 0 )
1070
1080
{
1071
1081
errno_temp = errno ;
0 commit comments