Skip to content
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

Fix mismatching BlockContents::has_trailer #12955

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

mm304321141
Copy link
Contributor

@mm304321141 mm304321141 commented Aug 22, 2024

BlockFetcher::ReadBlockContents()
|-- ReadBlock()
|-- UncompressSerializedBlock()
|-- InsertUncompressedBlockToPersistentCacheIfNeeded()

for this code path, we insert a BlockContent into persistent cache .
the BlockContent is from UncompressSerializedBlock, it has no trailer
but at next call to BlockFetcher::ReadBlockContents()
we will get the BlockContent from TryGetUncompressBlockFromPersistentCache()
and it set the BlockContent::has_trailer to true ???

@mm304321141 mm304321141 changed the title Fix miss matching BlockContents::has_trailer Fix mismatching BlockContents::has_trailer Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants