@@ -166,16 +166,14 @@ catchup_preflight_checks(PGNodeInfo *source_node_info, PGconn *source_conn,
166
166
source_id = get_system_identifier (source_pgdata , FIO_DB_HOST , false); /* same as instance_config.system_identifier */
167
167
168
168
if (source_conn_id != source_id )
169
- elog (ERROR , "Database identifiers mismatch: we %s connected to DB id %lu, but in \"%s\" we found id %lu" ,
170
- dry_run ? "can" :"will" ,
169
+ elog (ERROR , "Database identifiers mismatch: we connected to DB id %lu, but in \"%s\" we found id %lu" ,
171
170
source_conn_id , source_pgdata , source_id );
172
171
173
172
if (current .backup_mode != BACKUP_MODE_FULL )
174
173
{
175
174
dest_id = get_system_identifier (dest_pgdata , FIO_LOCAL_HOST , false);
176
175
if (source_conn_id != dest_id )
177
- elog (ERROR , "Database identifiers mismatch: we %s connected to DB id %lu, but in \"%s\" we found id %lu" ,
178
- dry_run ? "can" :"will" ,
176
+ elog (ERROR , "Database identifiers mismatch: we connected to DB id %lu, but in \"%s\" we found id %lu" ,
179
177
source_conn_id , dest_pgdata , dest_id );
180
178
}
181
179
}
@@ -831,7 +829,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
831
829
char dirpath [MAXPGPATH ];
832
830
833
831
join_path_components (dirpath , dest_pgdata , file -> rel_path );
834
- elog (VERBOSE , "Directory '%s' %s be created " , dirpath , dry_run ? "can" : "will" );
832
+ elog (VERBOSE , "Create directory '%s'" , dirpath );
835
833
if (!dry_run )
836
834
fio_mkdir (dirpath , DIR_PERMISSION , FIO_LOCAL_HOST );
837
835
}
@@ -861,8 +859,8 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
861
859
862
860
join_path_components (to_path , dest_pgdata , file -> rel_path );
863
861
864
- elog (VERBOSE , "Directory \"%s\" and symbolic link \"%s\" %s be created " ,
865
- linked_path , to_path , dry_run ? "can" : "will" );
862
+ elog (VERBOSE , "Create directory \"%s\" and symbolic link \"%s\"" ,
863
+ linked_path , to_path );
866
864
867
865
if (!dry_run )
868
866
{
@@ -915,7 +913,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
915
913
*/
916
914
if (current .backup_mode != BACKUP_MODE_FULL )
917
915
{
918
- elog (INFO , "Redundant files in destination directory %s be removed" , dry_run ? "can" : "will " );
916
+ elog (INFO , "Removing redundant files in destination directory" );
919
917
parray_qsort (dest_filelist , pgFileCompareRelPathWithExternalDesc );
920
918
for (i = 0 ; i < parray_num (dest_filelist ); i ++ )
921
919
{
@@ -947,7 +945,7 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
947
945
if (!dry_run )
948
946
{
949
947
fio_delete (file -> mode , fullpath , FIO_LOCAL_HOST );
950
- elog (VERBOSE , "File \"%s\" %s deleted " , fullpath , dry_run ? "can" : "will" );
948
+ elog (VERBOSE , "Deleted file \"%s\"" , fullpath );
951
949
}
952
950
953
951
/* shrink dest pgdata list */
0 commit comments