Skip to content
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

Switch reqlsns[0].request_lsn to arrow operator in neon_read_at_lsnv() (#10620) #10687

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OBBO67
Copy link
Contributor

@OBBO67 OBBO67 commented Feb 5, 2025

Problem

Currently the following line below uses array subscript notation which is confusing since reqlsns is not an array but just a pointer to a struct.

XLogWaitForReplayOf(reqlsns[0].request_lsn);

Summary of changes

Switch from array subscript notation to arrow operator to improve readability of code.

Close #10620.

neondatabase#10620)

Switch from array subscript notation to arrow operator to make intent and readability
clearer.
@OBBO67 OBBO67 requested review from a team as code owners February 5, 2025 20:25
@OBBO67 OBBO67 requested review from knizhnik, myrrc and skyzh February 5, 2025 20:25
@github-actions github-actions bot added the external A PR or Issue is created by an external user label Feb 5, 2025
@arpad-m arpad-m added the approved-for-ci-run Changes are safe to trigger CI for the PR label Feb 5, 2025
@github-actions github-actions bot removed the approved-for-ci-run Changes are safe to trigger CI for the PR label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external A PR or Issue is created by an external user
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible correctness issue in neon_read_at_lsnv() that could cause incorrect pages on Hot Standby replicas
2 participants