Files
seaweedfs/seaweed-block/core/frontend
pingqiuandClaude Opus 5.5 7581ad7781 layout: resolve an image root -> segment -> chunk
Reader opens a root of a volume and resolves a chunk index through the
shard's segment to its ref, then reads the bytes from the pool of the
volume the ref names (a restore's source for a foreign chunk). An index
the root does not name reads as zeros; a root, segment or chunk the root
reaches but the store lacks is ErrMissing, never zeros; bytes that do
not hash to their name, or a segment holding another shard, are
ErrCorrupt; a failed fetch is neither. DecodeRoot now checks the error
of its re-encoding as DecodeSegment does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:14:26 -08:00
..