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

build: Writing tile clobbers prev_blob_free flag #96

Closed
clarisma opened this issue Feb 24, 2023 · 0 comments
Closed

build: Writing tile clobbers prev_blob_free flag #96

clarisma opened this issue Feb 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@clarisma
Copy link
Owner

  • Tiles are written concurrently, on the assumption that each thread works on a different set of blocks
  • This assumption fails when a free blob at the end of a segment is reallocated, in which case the prev_blob_free flag of the next blob is cleared
  • A thread writing tile data into this next blob potentially resets this flag because it read an earlier version of the blob header
  • Solution: When writing a tile, never write the blob header; let BlobStore handle this exclusively
@clarisma clarisma added the bug Something isn't working label Feb 24, 2023
@clarisma clarisma changed the title build: Writing tile clobbers prev_blob_free flag build: Writing tile clobbers prev_blob_free flag Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant