@@ -277,31 +277,31 @@ stop_streaming(XLogRecPtr xlogpos, uint32 timeline, bool segment_finished)
277277 {
278278 XLogSegNo xlog_segno ;
279279 char wal_segment_name [MAXNAMLEN ];
280- char wal_segment_relpath [MAXPGPATH ];
280+ char wal_segment_relpath [MAXPGPATH ];
281281 char wal_segment_fullpath [MAXPGPATH ];
282- pgFile * file ;
282+ pgFile * file = NULL ;
283283
284- elog (INFO , _ ("finished segment at %X/%X (timeline %u)" ),
285- (uint32 ) (xlogpos >> 32 ), (uint32 ) xlogpos , timeline );
284+ elog (VERBOSE , _ ("finished segment at %X/%X (timeline %u)" ),
285+ (uint32 ) (xlogpos >> 32 ), (uint32 ) xlogpos , timeline );
286286
287287 /* Add streamed xlog file into the backup's list of files */
288288 if (!xlog_files_list )
289289 xlog_files_list = parray_new ();
290290
291291 GetXLogSegNo (xlogpos , xlog_segno , instance_config .xlog_seg_size );
292292
293- /* xlogpos points to the current segment, and we need the finished - previous one */
294- xlog_segno -- ;
293+ /* xlogpos points to the current segment, and we need the finished - previous one */
294+ xlog_segno -- ;
295295 GetXLogFileName (wal_segment_name , timeline , xlog_segno ,
296296 instance_config .xlog_seg_size );
297297
298298 join_path_components (wal_segment_fullpath ,
299299 stream_thread_arg .basedir , wal_segment_name );
300300
301- join_path_components (wal_segment_relpath ,
301+ join_path_components (wal_segment_relpath ,
302302 PG_XLOG_DIR , wal_segment_name );
303303
304- /* append file to filelist */
304+ /* append file to filelist */
305305 file = pgFileNew (wal_segment_fullpath , wal_segment_relpath , false, 0 , FIO_BACKUP_HOST );
306306 file -> name = file -> rel_path ;
307307 file -> crc = pgFileGetCRC (wal_segment_fullpath , true, false);
0 commit comments