Skip to content

Commit 22620c5

Browse files
committed
add some comments after PR feedback
Signed-off-by: Renan Rangel <rrangel@slack-corp.com>
1 parent dd8bb8c commit 22620c5

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

go/vt/mysqlctl/builtinbackupengine.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,18 @@ type FileEntry struct {
177177

178178
// FileChunk describes one chunk of a large file that has been split for parallel backup/restore.
179179
type FileChunk struct {
180+
// StorageName is the name used to store this chunk in the backup storage.
181+
// Format is "fileIndex-chunkIndex" (e.g. "5-0", "5-1").
180182
StorageName string
181-
Offset int64
182-
Size int64
183-
Hash string
183+
184+
// Offset is the byte offset within the original file where this chunk starts.
185+
Offset int64
186+
187+
// Size is the number of bytes in this chunk.
188+
Size int64
189+
190+
// Hash is the CRC32 hash of the stored data (after compression, if any).
191+
Hash string
184192
}
185193

186194
// computeFileChunks splits a file of the given size into chunks of chunkSize bytes.

0 commit comments

Comments
 (0)