Browse Source

Address review: improve comment to reflect full scope of chunk creation

pull/7598/head
chrislu 3 days ago
parent
commit
46865f4c54
  1. 2
      weed/s3api/s3api_streaming_copy.go

2
weed/s3api/s3api_streaming_copy.go

@ -459,7 +459,7 @@ func (scm *StreamingCopyManager) streamToChunks(ctx context.Context, reader io.R
for {
n, err := reader.Read(buffer)
if n > 0 {
// Create chunk for this data, passing encryption spec for SSE type
// Create chunk for this data, setting SSE type and per-chunk metadata (including chunk-specific IVs for SSE-S3)
chunk, chunkErr := scm.createChunkFromData(buffer[:n], offset, dstPath, spec.EncryptionSpec)
if chunkErr != nil {
return nil, fmt.Errorf("create chunk from data: %w", chunkErr)

Loading…
Cancel
Save