summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier2026-09-05 00:12:45 +0000
committerMichael Paquier2026-09-05 00:12:45 +0000
commit941568a9067267f71d5f68862584a92294828230 (patch)
tree22cb80ee52e13db539d3da295eac74fb475c074f
parentf4012672bb2e5f1b0a4641826e14e9d209049dea (diff)
Fix incorrect error message in xlogreader.cREL_19_STABLE
When neither BKPIMAGE_HAS_HOLE nor BKPIMAGE_COMPRESSED is set, DecodeXLogRecord() checks that bimg_len needs to be equal to BLCKSZ. However, the associated error message reported the data length associated to a block (DecodedBkpBlock.data_len), and not the length of the block (DecodedBkpBlock.bimg_len). Oversight in 57aa5b2bb11a, probably due to some copy-paste from the surroundings. Author: Ayush Tiwari <ayushtiwari.slg01@gmail.com> Discussion: https://postgr.es/m/CAJTYsWVz9ymE7aMt2ZiQvs1bxNvhjfTf+XaJEsdFw7MT5dvtYQ@mail.gmail.com Backpatch-through: 14
-rw-r--r--src/backend/access/transam/xlogreader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlogreader.c b/src/backend/access/transam/xlogreader.c
index 9d64ae34932..b5e1cd40773 100644
--- a/src/backend/access/transam/xlogreader.c
+++ b/src/backend/access/transam/xlogreader.c
@@ -1900,7 +1900,7 @@ DecodeXLogRecord(XLogReaderState *state,
{
report_invalid_record(state,
"neither BKPIMAGE_HAS_HOLE nor BKPIMAGE_COMPRESSED set, but block image length is %d at %X/%08X",
- blk->data_len,
+ blk->bimg_len,
LSN_FORMAT_ARGS(state->ReadRecPtr));
goto err;
}