Skip to content

PS-11297 [8.4]: Avoid calling validate() in non-debug in rec_offs_*()#6041

Merged
polchawa-percona merged 1 commit into
percona:8.4from
polchawa-percona:PS-11297-8.4-rec-offs-validate
Jun 25, 2026
Merged

PS-11297 [8.4]: Avoid calling validate() in non-debug in rec_offs_*()#6041
polchawa-percona merged 1 commit into
percona:8.4from
polchawa-percona:PS-11297-8.4-rec-offs-validate

Conversation

@polchawa-percona

@polchawa-percona polchawa-percona commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

https://perconadev.atlassian.net/browse/PS-11297

8.4 equivalent of #5922.

Function validate_rec_offset() in the rec_offs_*() helpers of rem0wrec was called
unconditionally, including in non-debug builds where it does no useful work.
Wrap these calls in ut_d() so they are compiled only in debug builds, removing
per-call overhead on release builds.

https://perconadev.atlassian.net/browse/PS-11297

validate_rec_offset() in the rec_offs_*() helpers of rem0wrec was called
unconditionally, including in non-debug builds where it does no useful work.
Wrap these calls in ut_d() so they are compiled only in debug builds, removing
the per-call overhead on release builds.

@percona-ysorokin percona-ysorokin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@polchawa-percona polchawa-percona merged commit 6ec0b84 into percona:8.4 Jun 25, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants