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

Merged
merged 1 commit into from
Feb 6, 2025

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
@arpad-m arpad-m added the approved-for-ci-run Changes are safe to trigger CI for the PR label Feb 6, 2025
@github-actions github-actions bot removed the approved-for-ci-run Changes are safe to trigger CI for the PR label Feb 6, 2025
@bayandin bayandin added the approved-for-ci-run Changes are safe to trigger CI for the PR label Feb 6, 2025
@github-actions github-actions bot removed the approved-for-ci-run Changes are safe to trigger CI for the PR label Feb 6, 2025
@vipvap vipvap mentioned this pull request Feb 6, 2025
Copy link

github-actions bot commented Feb 6, 2025

7425 tests run: 7073 passed, 0 failed, 352 skipped (full report)


Flaky tests (1)

Postgres 16

Code coverage* (full report)

  • functions: 33.3% (8589 of 25819 functions)
  • lines: 49.1% (72285 of 147242 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
c073243 at 2025-02-06T17:13:44.595Z :recycle:

@arpad-m arpad-m added this pull request to the merge queue Feb 6, 2025
@arpad-m
Copy link
Member

arpad-m commented Feb 6, 2025

@OBBO67 thanks for the contribution!

Merged via the queue into neondatabase:main with commit 82cbab7 Feb 6, 2025
145 of 150 checks passed
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
4 participants