fix(universaldb): align versionstamp operand encoding#4951
Conversation
PR #4951: fix(universaldb): align versionstamp operand encodingOverviewThis PR fixes two related bugs in the
The semantic correction in What's correct
Issues / concerns1. The heuristic helper at the bottom of 2. Semantics mismatch between the two substitution functions
This is visible in 3. The test manually re-appends 4. Duplicate magic constant
Minor nits
SummaryThe core fix is correct and necessary -- the old code was actively wrong for call sites relying on user-version preservation or expecting the 4-byte offset trailer to be stripped from stored data. The test additions directly encode FDB wire-protocol invariants and will catch future regressions. Main items to address before merging: (1) add a test or documented invariant for |
dc80877 to
63a3fd9
Compare
f03ad3c to
4799acd
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: