Skip to content

Footer body and trailer must be one append - #18

Open
paulocsanz wants to merge 2 commits into
beyondoss:mainfrom
paulocsanz:dst/b52-footer-one-append
Open

Footer body and trailer must be one append#18
paulocsanz wants to merge 2 commits into
beyondoss:mainfrom
paulocsanz:dst/b52-footer-one-append

Conversation

@paulocsanz

Copy link
Copy Markdown
Contributor

write_footer did append(body) then append(trailer). rotate_active does not freeze_and_drain (seal does). A put on another stripe between the two SQEs yields [records][footer_body][PUT][trailer]. read_footer sees magic at EOF, uses the original body_len, CRC-fails, and open refuses the namespace.

Two commits: inject-between-appends test (CRC fail on main), then one append of body || trailer.

  • Hook is unused after the single append
  • Empty and non-empty footers stay valid

write_footer is two appends. A put landing between them makes
read_footer CRC-fail (rotate has no freeze).
Two SQEs let a sibling put split the trailer. rotate does not
freeze writers. One append makes the trailer contiguous.
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.

1 participant