Skip to content

Conversation

jeltz
Copy link
Collaborator

@jeltz jeltz commented Aug 7, 2025

Since they used no common types at all (with a small exception of empty being used in the WAL code but not WAL file) it makes a lot of sense to split the two enums. Additionally we clean up the code a bit and introduce a minor performance improvement when generating a new WAL key.

@jeltz jeltz changed the title Split the type enum for WAL key and SMGR types Split the type enum for WAL key and SMGR key types Aug 7, 2025
@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2025

Codecov Report

❌ Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.21%. Comparing base (87c55e6) to head (95ded59).
⚠️ Report is 1 commits behind head on TDE_REL_17_STABLE.

❌ Your project status has failed because the head coverage (82.21%) 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     #510      +/-   ##
=====================================================
+ Coverage              82.00%   82.21%   +0.21%     
=====================================================
  Files                     24       25       +1     
  Lines                   3162     3177      +15     
  Branches                 514      515       +1     
=====================================================
+ Hits                    2593     2612      +19     
+ Misses                   460      456       -4     
  Partials                 109      109              
Components Coverage Δ
access 83.52% <91.93%> (+0.64%) ⬆️
catalog 87.61% <ø> (ø)
common 77.77% <ø> (ø)
encryption 72.97% <ø> (ø)
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 force-pushed the tde/clean-key-file-split-status branch from f39f465 to 3c1a426 Compare August 8, 2025 09:10
jeltz added 3 commits August 8, 2025 13:04
Sincw we never delete WAL keys this logic only confuses the reader of
the code. Plus we can optimize the insertion of a new WAL key by using
seek().
Let's stop pretending that we support more than two status: empty or
that there is a SMGR key.
Also rename enum variants for consistency plus renumber the types for
the WAL keys which is fine since this file is newly introduced which
makes breaking backwards compatibility not an issue.
@jeltz jeltz force-pushed the tde/clean-key-file-split-status branch from 3c1a426 to 95ded59 Compare August 8, 2025 11:08
@jeltz jeltz merged commit 602cd73 into percona:TDE_REL_17_STABLE Aug 8, 2025
19 checks passed
@jeltz jeltz deleted the tde/clean-key-file-split-status 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