mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
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>