Content-Length: 260169 | pFad | http://github.com/postgrespro/postgres/commit/12aaae5131af343b7cd2fdef05dee82c25d8aaf8

B5 Check XLogRecHasBlockRef() before XLogRecHasBlockImage(). · postgrespro/postgres@12aaae5 · GitHub
Skip to content

Commit 12aaae5

Browse files
committed
Check XLogRecHasBlockRef() before XLogRecHasBlockImage().
Trial fix of buildfarm failures on kestrel and tamandua.
1 parent 1562e92 commit 12aaae5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/access/transam/xlogstats.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ XLogRecGetLen(XLogReaderState *record, uint32 *rec_len,
3333
*fpi_len = 0;
3434
for (block_id = 0; block_id <= XLogRecMaxBlockId(record); block_id++)
3535
{
36+
if (!XLogRecHasBlockRef(record, block_id))
37+
continue;
38+
3639
if (XLogRecHasBlockImage(record, block_id))
3740
*fpi_len += XLogRecGetBlock(record, block_id)->bimg_len;
3841
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/12aaae5131af343b7cd2fdef05dee82c25d8aaf8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy