1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

Fix untranslatable message that was pasted together at run time

This commit is contained in:
Peter Eisentraut
2026-08-24 14:20:47 +02:00
parent 53a981ed5b
commit 29636b49a7

View File

@@ -160,9 +160,11 @@ PageIsVerified(PageData *page, BlockNumber blkno, int flags, bool *checksum_fail
if ((flags & (PIV_LOG_WARNING | PIV_LOG_LOG)) != 0)
ereport(flags & PIV_LOG_WARNING ? WARNING : LOG,
(errcode(ERRCODE_DATA_CORRUPTED),
errmsg("page verification failed, calculated checksum %u but expected %u%s",
checksum, p->pd_checksum,
(flags & PIV_ZERO_BUFFERS_ON_ERROR ? ", buffer will be zeroed" : ""))));
(flags & PIV_ZERO_BUFFERS_ON_ERROR) ?
errmsg("page verification failed, calculated checksum %u but expected %u, buffer will be zeroed",
checksum, p->pd_checksum) :
errmsg("page verification failed, calculated checksum %u but expected %u",
checksum, p->pd_checksum)));
if (header_sane && (flags & PIV_IGNORE_CHECKSUM_FAILURE))
return true;