Skip to content

Commit 820380a

Browse files
Update ptrack.c
Co-authored-by: Sokolov Yura <[email protected]>
1 parent a34e6c3 commit 820380a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptrack.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ ptrack_get_pagemapset(PG_FUNCTION_ARGS)
502502
XLogRecPtr update_lsn2;
503503

504504
/* Stop traversal if there are no more segments */
505-
if (ctx->bid.blocknum + 1 > ctx->relsize)
505+
if (ctx->bid.blocknum >= ctx->relsize)
506506
{
507507
/* We completed a segment and there is a bitmap to return */
508508
if (pagemap.bitmap != NULL)

0 commit comments

Comments
 (0)