8000 remove additional and useless loop for each relation file when do ptrack_get_pagemapset query by vegebird · Pull Request #17 · postgrespro/ptrack · GitHub
[go: up one dir, main page]

Skip to content

remove additional and useless loop for each relation file when do ptrack_get_pagemapset query #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update ptrack.c
Co-authored-by: Sokolov Yura <funny.falcon@gmail.com>
  • Loading branch information
vegebird and funny-falcon authored Jun 27, 2022
commit 820380ae477bd5567872bde01984dcf84879ca66
2 changes: 1 addition & 1 deletion ptrack.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ ptrack_get_pagemapset(PG_FUNCTION_ARGS)
XLogRecPtr update_lsn2;

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