mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
77e150d22e5c4558ea76d9fc7c5fcdcb44ad44df
The master read HEAD two ways with two settings: the layout catalog (filer gRPC, --chunk-filer) for create and restore, and plain filer HTTP ?metadata=true (--workspace-head-base-url) for the workspace move admission and the revoke ACK. The workspace reader now reads through the catalog it already dials: BCatalog.ReadHeadObserved returns HEAD, decoded by the same DecodeLayoutHeadEntry, with the entry's modification time from that same lookup (seconds, as the HTTP metadata gave it). The proof mapping is unchanged: identity from the master's lifecycle record, deleting, unclaimed, detached, generation, epoch, holder and position; an absent HEAD refuses with ErrHeadAbsent. The HTTP reader and --workspace-head-base-url are deleted, with the unit's and the env file's setting and the docs. The master tests run the same refusal table against a catalog on the in-memory filer (the HTTP-only redirect and envelope cases have no counterpart). The fixtures that passed the flag give the master the filer flags instead; the head-size and F1 ladder masters had none and could not dial the catalog at all. 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%