Skip to content

recording: align metafile cursor with parsed metadata bytes#2090

Closed
tombriden wants to merge 1 commit intosipwise:masterfrom
tombriden:further-metafile-read-fixes
Closed

recording: align metafile cursor with parsed metadata bytes#2090
tombriden wants to merge 1 commit intosipwise:masterfrom
tombriden:further-metafile-read-fixes

Conversation

@tombriden
Copy link
Copy Markdown
Contributor

since previous change relating to incomplete metafile's being read while still being written, there are still circumstances that result in failure

This change tracks last_good_pos after each full section and advances mf->pos once by parsed buffer prefix so the next read does not skip tail bytes. The log lines have now been made dbg instead of warnings as they should be handled correctly on subsequent reads of the file

since previous change relating to incomplete metafile's being read while
still being written, there are still circumstances that result in failure

This change tracks last_good_pos after each full section and advances
mf->pos once by parsed buffer prefix so the next read does not skip tail
bytes. The log lines have now been made dbg instead of warnings as they
should be handled correctly on subsequent reads of the file
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