mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
36d797cf014cb466965d6c492762757e6f06ea3a
LifecycleService.FormatLevel answers the cluster's format level (a viewer's read; sw-block cluster format-level). A master that finds no prior authority state writes the level-1 envelope before it serves; existing state keeps its level, so only a cluster holding v1.0 data needs the finalize. Above level 0 a node that has not reported its read level is refused new work typed and retryable (AWAITING_FIRST_REPORT), and the cluster status shows it awaiting report. The master tests' fake hosts report reads_level 1 as a v1.1 host does; the FormatGate upgrade tests start from a store in v1.0.x's form. 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%