Use correct format placeholder for timeline IDs
Should be %u rather than %d.
This commit is contained in:
parent
703c7a3c54
commit
e4b88c5fa3
@ -565,7 +565,7 @@ GetOldestUnsummarizedLSN(TimeLineID *tli, bool *lsn_is_exact,
|
|||||||
if (unsummarized_tli == 0)
|
if (unsummarized_tli == 0)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
errcode(ERRCODE_INTERNAL_ERROR),
|
errcode(ERRCODE_INTERNAL_ERROR),
|
||||||
errmsg_internal("no WAL found on timeline %d", latest_tli));
|
errmsg_internal("no WAL found on timeline %u", latest_tli));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Don't try to summarize anything older than the end LSN of the newest
|
* Don't try to summarize anything older than the end LSN of the newest
|
||||||
@ -909,7 +909,7 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
|
|||||||
* able to read a complete record.
|
* able to read a complete record.
|
||||||
*/
|
*/
|
||||||
ereport(DEBUG1,
|
ereport(DEBUG1,
|
||||||
errmsg_internal("could not read WAL from timeline %d at %X/%X: end of WAL at %X/%X",
|
errmsg_internal("could not read WAL from timeline %u at %X/%X: end of WAL at %X/%X",
|
||||||
tli,
|
tli,
|
||||||
LSN_FORMAT_ARGS(xlogreader->EndRecPtr),
|
LSN_FORMAT_ARGS(xlogreader->EndRecPtr),
|
||||||
LSN_FORMAT_ARGS(private_data->read_upto)));
|
LSN_FORMAT_ARGS(private_data->read_upto)));
|
||||||
@ -1064,7 +1064,7 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
|
|||||||
|
|
||||||
/* Tell the user what we did. */
|
/* Tell the user what we did. */
|
||||||
ereport(DEBUG1,
|
ereport(DEBUG1,
|
||||||
errmsg("summarized WAL on TLI %d from %X/%X to %X/%X",
|
errmsg("summarized WAL on TLI %u from %X/%X to %X/%X",
|
||||||
tli,
|
tli,
|
||||||
LSN_FORMAT_ARGS(summary_start_lsn),
|
LSN_FORMAT_ARGS(summary_start_lsn),
|
||||||
LSN_FORMAT_ARGS(summary_end_lsn)));
|
LSN_FORMAT_ARGS(summary_end_lsn)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user