mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
67b5f0184f965dea3b1ecf4566419e98ba72138f
HEAD is the volume's one mutable entry: epoch and holder, the open transaction (activity idle, snap(session) or clean(session)), the current root and position, and the named snapshots with their dependents (at most 100). Its encoding is canonical JSON; decoding refuses unknown fields and any bytes Encode would not write. Begin moves activity idle -> snap(session) for the holder at HEAD's epoch, by one conditional update on HEAD's generation. Begin of the session already open is a replay and writes nothing; another open session, a cleaning, another epoch or another holder is refused; an absent HEAD is refused and never created. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%