1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Do not log bundle info when a file is delta matched from a prior backup.

It is possible to log the bundle info correctly but the information is useless with the backup reference, which does not appear until later. For now just omit the bundle info so we are not logging something incorrect.
This commit is contained in:
David Steele 2022-10-02 17:48:43 -10:00
parent 4722ad87a7
commit 6e26860c26
2 changed files with 2 additions and 2 deletions

View File

@ -1188,7 +1188,7 @@ backupJobResult(
// Format log progress // Format log progress
String *const logProgress = strNew(); String *const logProgress = strNew();
if (bundleId != 0) if (bundleId != 0 && copyResult != backupCopyResultNoOp)
strCatFmt(logProgress, "bundle %" PRIu64 "/%" PRIu64 ", ", bundleId, bundleOffset); strCatFmt(logProgress, "bundle %" PRIu64 "/%" PRIu64 ", ", bundleId, bundleOffset);
// Store percentComplete as an integer // Store percentComplete as an integer

View File

@ -3358,7 +3358,7 @@ testRun(void)
"P00 INFO: backup start archive = 0000000105DBBF8000000000, lsn = 5dbbf80/0\n" "P00 INFO: backup start archive = 0000000105DBBF8000000000, lsn = 5dbbf80/0\n"
"P00 INFO: check archive for segment 0000000105DBBF8000000000\n" "P00 INFO: check archive for segment 0000000105DBBF8000000000\n"
"P01 DETAIL: backup file " TEST_PATH "/pg1/global/pg_control (bundle 1/0, 8KB, [PCT]) checksum [SHA1]\n" "P01 DETAIL: backup file " TEST_PATH "/pg1/global/pg_control (bundle 1/0, 8KB, [PCT]) checksum [SHA1]\n"
"P01 DETAIL: match file from prior backup " TEST_PATH "/pg1/PG_VERSION (bundle 1/0, 2B, [PCT]) checksum [SHA1]\n" "P01 DETAIL: match file from prior backup " TEST_PATH "/pg1/PG_VERSION (2B, [PCT]) checksum [SHA1]\n"
"P00 DETAIL: reference pg_data/PG_VERSION to 20191030-014640F\n" "P00 DETAIL: reference pg_data/PG_VERSION to 20191030-014640F\n"
"P00 DETAIL: reference pg_data/zero to 20191030-014640F\n" "P00 DETAIL: reference pg_data/zero to 20191030-014640F\n"
"P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive\n" "P00 INFO: execute non-exclusive pg_stop_backup() and wait for all WAL segments to archive\n"