mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
aa2f91b1066e4a4287904da6d51da4703e29ca00
A VOLUME record carries a random volume id, and identities never rest on a name that can repeat: HEAD carries the volume id; every chunk reference in a segment carries its owner's volume id, which a read checks against the owner's VOLUME before fetching (a volume created again under the name is ErrIdentity) and the remover uses to tell its own chunks; every dependent records the target's volume id and the snapshot's root hash; and a holder is its epoch, server and the claim id its claim writes into HEAD, so every transition refuses the same server with another claim id. Encodings stay canonical and decoding refuses anything else; the segment format is version 2. Nothing writes these shapes to a store yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%