Skip to content

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

Open
polchawa-percona wants to merge 1 commit into
percona:trunkfrom
polchawa-percona:PS-11297-trunk-rec-offs-validate
Open

PS-11297 [trunk]: Avoid calling validate() in non-debug in rec_offs_*()#6043
polchawa-percona wants to merge 1 commit into
percona:trunkfrom
polchawa-percona:PS-11297-trunk-rec-offs-validate

Conversation

@polchawa-percona

Copy link
Copy Markdown
Contributor

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

trunk equivalent of #6042 (and #5922 / #6041).

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.

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

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