mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* mount: send covered chunks no stored entry named, so the filer deletes them A flush compacts the handle's chunks before it publishes them, dropping chunks later writes fully cover. The filer deletes only the chunks the stored entry loses and the ones the request itself covers, so a chunk uploaded and then overwritten before any publication named it (a file rewritten in place before close, like FFmpeg's +faststart pass) was left on the volume servers with no reference. Both the close flush and the periodic metadata flush now carry those chunks along in the request, after the base snapshot, when the request's own plain chunks still cover them; the filer compacts them out and deletes them after the commit. Chunks rewritten by a merge are stamped 0 and the filer does not look into manifests, so a chunk that would show through again is not sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: test that flushes hand covered unpublished chunks to the filer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: check each covered chunk against the request's own chunks The coverage check compacted the dropped chunks together with the request's, so one dropped chunk could hide another. Only the request's chunks reach the filer with it: after a merge, whose chunks are stamped 0, an older dropped chunk hidden only by a newer dropped one would show through and the filer would delete the merged chunk instead. Each dropped chunk is now sent only if newer visible plain chunks of the request hide all of its range. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>