Skip to content

Remove RelFileLocator from the WAL key file #503

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

Conversation

jeltz
Copy link
Collaborator

@jeltz jeltz commented Aug 7, 2025

Since the RelFileLocator has never actually been used for WAL keys we can remove all traces of it from the new file an from the code.

We also fix a bug where the wrong struct was used for calculating an offset.

jeltz added 2 commits August 7, 2025 13:30
It happened to work by coincidence since the two structs had the same
shape but is a bug waiting to happen.
Since the RelFileLocator has never actually been used for WAL keys we
can remove all traces of it from the new file and from the code.
@jeltz jeltz force-pushed the tde/clean-key-file-split-locator branch from d8f9c24 to 57a7937 Compare August 7, 2025 11:33
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.00%. Comparing base (583f8ef) to head (57a7937).

❌ Your project status has failed because the head coverage (82.00%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           TDE_REL_17_STABLE     #503      +/-   ##
=====================================================
- Coverage              82.03%   82.00%   -0.04%     
=====================================================
  Files                     25       25              
  Lines                   3168     3162       -6     
  Branches                 514      514              
=====================================================
- Hits                    2599     2593       -6     
  Misses                   460      460              
  Partials                 109      109              
Components Coverage Δ
access 82.72% <100.00%> (-0.15%) ⬇️
catalog 87.61% <ø> (ø)
common 77.77% <ø> (ø)
encryption 73.45% <ø> (ø)
keyring 73.21% <ø> (ø)
src 94.15% <ø> (ø)
smgr 95.29% <ø> (ø)
transam ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeltz jeltz merged commit 91997fb into percona:TDE_REL_17_STABLE Aug 7, 2025
19 checks passed
@jeltz jeltz deleted the tde/clean-key-file-split-locator branch August 10, 2025 21:25
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.

4 participants