!917 优化gs_probackup备机备份会打印很多重复log问题
Merge pull request !917 from xiepy/master
This commit is contained in:
@ -1223,10 +1223,20 @@ void tryToFindCompressedWALFile(bool *file_exists, char *gz_wal_segment_path, ch
|
||||
#ifdef HAVE_LIBZ
|
||||
*file_exists = fileExists(gz_wal_segment_path, FIO_BACKUP_HOST);
|
||||
if (*file_exists)
|
||||
{
|
||||
elog(LOG, "Found compressed WAL segment: %s", wal_segment_path);
|
||||
if (current.from_replica)
|
||||
{
|
||||
elog(INFO, "Wait a few minutes to get the target LSN or the last valid record prior to the target LSN");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
elog(LOG, "Found WAL segment: %s", wal_segment_path);
|
||||
if (current.from_replica)
|
||||
{
|
||||
elog(INFO, "Wait a few minutes to get the target LSN or the last valid record prior to the target LSN");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1054,8 +1054,9 @@ static int switch_next_wal_segment(XLogReaderData *reader_data, bool *isreturn)
|
||||
|
||||
if (fileExists(reader_data->xlogpath, FIO_LOCAL_HOST))
|
||||
{
|
||||
elog(LOG, "Thread [%d]: Opening WAL segment \"%s\"",
|
||||
reader_data->thread_num, reader_data->xlogpath);
|
||||
if (!current.from_replica)
|
||||
elog(LOG, "Thread [%d]: Opening WAL segment \"%s\"",
|
||||
reader_data->thread_num, reader_data->xlogpath);
|
||||
|
||||
reader_data->xlogexists = true;
|
||||
reader_data->xlogfile = fio_open(reader_data->xlogpath,
|
||||
|
||||
Reference in New Issue
Block a user