mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-09 14:33:17 +02:00
change WARNING message to LOG in verbose mode
This commit is contained in:
parent
d10e5f1871
commit
23abfcb5ce
7
data.c
7
data.c
@ -81,9 +81,10 @@ backup_data_page(pgFile *file, const XLogRecPtr *lsn,
|
||||
|
||||
if (st.st_size/BLCKSZ <= blknum)
|
||||
{
|
||||
elog(WARNING, "File: %s, file was truncated after backup start."
|
||||
"Expected nblocks %u. Real nblocks %ld. Cannot read block %u ",
|
||||
file->path, nblocks, st.st_size/BLCKSZ, blknum);
|
||||
if (verbose)
|
||||
elog(LOG, "File: %s, file was truncated after backup start."
|
||||
"Expected nblocks %u. Real nblocks %ld. Cannot read block %u ",
|
||||
file->path, nblocks, st.st_size/BLCKSZ, blknum);
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user