-
Notifications
You must be signed in to change notification settings - Fork 310
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
chore: explain magic number 4 for unencrypted logs [hash] length #6578
Comments
Hey - added a comment to the PR as well.
We prefix the data portion with its own length in 4 bytes. This is useful as the data is variable length so we can tell readers how to process it. Re the mismatch you were getting, I'll look into it, but |
I see the problem - I should have added the extra To explain (may not be useful) - before my PR, both the journal and contexts were tracking total logs length. This turned out to be uneccesary because we track individual logs with their lengths, and in a lot of cases sum these lengths anyway. What I missed was that, in the journal, the
We want the length of the buffer output from Later on, ts bundles logs together in |
No description provided.
The text was updated successfully, but these errors were encountered: