mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
94db7c173dc9fc544c8a5f963a2781d5ccacd431
The first snapshot of a volume never written names its empty image with a
commit of its own, which gives HEAD its first root. The commit recorded
only its own generation, so the view kept the rootless image. The next
HEAD write by anyone else (a snapshot delete, through the holder or the
store) then looked like an image change: the generation the engine sees
moved, and the next cut lost its commit with head_conflict; its retry
answered internal ("not in HEAD after its commit").
CommitPendingSnapshot now records the image it committed, as the cut's
commit does, so a later write that leaves the image in place does not move
the engine's generation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%