Skip to content

Commit 025f0a6

Browse files
committed
Fix incorrect format placeholder
Not only did the format placeholder not match the variable, the variable also didn't match the function it was getting its value from.
1 parent f5a465f commit 025f0a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/backup/basebackup_incremental.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ PrepareForIncrementalBackup(IncrementalBackupInfo *ib,
428428
while (1)
429429
{
430430
long timeout_in_ms = 10000;
431-
unsigned elapsed_seconds;
431+
long elapsed_seconds;
432432

433433
/*
434434
* Align the wait time to prevent drift. This doesn't really matter,
@@ -493,7 +493,7 @@ PrepareForIncrementalBackup(IncrementalBackupInfo *ib,
493493
TimestampDifferenceMilliseconds(initial_time, current_time) / 1000;
494494
ereport(WARNING,
495495
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
496-
errmsg("still waiting for WAL summarization through %X/%X after %d seconds",
496+
errmsg("still waiting for WAL summarization through %X/%X after %ld seconds",
497497
LSN_FORMAT_ARGS(backup_state->startpoint),
498498
elapsed_seconds),
499499
errdetail("Summarization has reached %X/%X on disk and %X/%X in memory.",

0 commit comments

Comments
 (0)