We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd8bb8c commit 22620c5Copy full SHA for 22620c5
1 file changed
go/vt/mysqlctl/builtinbackupengine.go
@@ -177,10 +177,18 @@ type FileEntry struct {
177
178
// FileChunk describes one chunk of a large file that has been split for parallel backup/restore.
179
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").
182
StorageName string
- Offset int64
- Size int64
183
- Hash string
+
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
192
}
193
194
// computeFileChunks splits a file of the given size into chunks of chunkSize bytes.
0 commit comments