mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
Review: ManifestNs summed every manifest span of the attempt, so a HEAD re-read after a lost answer (inside HeadReadbackNs) was counted twice. It is now the manifest work measured across the commit check only. The write counts were whole successful ensures: a store wrapper now counts each acknowledged create of a root or segment, with its bytes, as it completes; an object already present sends and counts nothing, and a failed commit keeps what it sent. Tests: a lost-answer cut keeps the slow re-read out of ManifestNs (with the old sum it reads 60 ms in both); three-shard full and by-change commits match byte totals computed from the layout; a failed root send keeps the segment, and the retry sends only the root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>