mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
4fdecba38006e09f185081bf8af277a989477c57
A 1 TiB commit (262,144 chunks) spent 2.47 s inside the 2 s HEAD update re-deriving the base root and re-scanning the manifests, and its retry did it again. PlanCommit now computes everything a commit needs from the request alone (root, segments, base root, the owners of the changed entries for the foreign-reference check, and the objects to look up) before the update; the update step only checks the replay, the base, the owners and writes. CheckCommit plans on the cut's budget and CASHead reuses that plan and the passed check on every attempt of the same open session (matched by manifest equality); the check is no longer dropped before the commit, so a re-proposal after an unknown outcome looks up nothing. 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%