mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
2e9650629974518eb70ef49af8072066574be772
Two overlapping recoveries: A synced its data and paused, B started and imported newer bytes (the table already invalid), then A's replace made the table valid over B's data. Invalidate now draws a fresh random token, persists it as the mark's owner and returns it; a later recovery takes the mark over. A recovery completes only under its own token, checked and written under one lock; any other completion is refused and not acked, and a dead recovery's token is never presented again, so after a reload the table stays invalid until a new recovery completes. Dual-lane sessions hold the mark under a sentinel no completion presents. A promotion over an invalid table clears the owner. The block design gains the epoch table's state diagram. 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%