mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
* filer: stamp a manifest chunk with the newest chunk it folds mergeIntoManifest saved the manifest with tsNs 0, so manifest chunks carried no modification time. Give it the newest ModifiedTsNs of the chunks it holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: stamp merged chunks with the newest chunk they replace maybeMergeChunks uploaded the rewritten chunks with tsNs 0, so any older chunk that overlaps them later, like a covered chunk sent with the commit, outranked the merge. Give them the newest ModifiedTsNs of the chunks they replace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: stamp a merged chunk with the oldest data it holds The newest stamp of the whole merge outranked a peer's pending write that is newer than the bytes the merge carries for its range but older than the newest of them. Stamp each merged chunk with the oldest visible data in its range, or 0 over a hole, so such a write still shows while chunks older than all of its data lose to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * mount: find a merged chunk's range by binary search Each uploaded chunk scanned the visible intervals from the front. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>