mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-18 09:46:24 +01:00
* operation: prepare upload content before assigning the volume * operation: keep the existing upload function names for prepared payloads UploadData and doUpload prepare once and hand the prepared payload to retriedUploadData, so the retry loop, doUploadData, uploadChunk and uploadChunkToHolders take a preparedUpload directly instead of growing a prepared twin of each and branching on nil. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * operation: send ciphertext whenever the prepared payload carries a cipher key doUploadData chose the cipher branch from the option, so a payload prepared under a different option could be sent as plaintext metadata or lose its key. Decide from the prepared payload itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * operation: build a chunk's preparation and upload options in one place The chunk loop prepared with a hand-written option while uploadChunk and uploadChunkToHolders built their own, so a setting that shapes the bytes could reach one and not the other. chunkUploadOption now feeds all three. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * operation: test that a reassigned chunk reuses its prepared payload Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>