mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
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>