File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -265,11 +265,13 @@ type chunkSource interface {
265
265
// currentSize returns the current total physical size of the chunkSource.
266
266
currentSize () uint64
267
267
268
- // scanAllChunks will call the provided function for each chunk in the chunkSource. This is currently used
268
+ // iterateAllChunks will call the provided function for each chunk in the chunkSource. This is currently used
269
269
// to perform integrity checks, and the chunk passed in will have the address from the index, and the content
270
- // loaded. This iterator doesn't have a way to stop the iteration other than the context being canceled.
270
+ // loaded. Note that there may be duplicate chunks in the chunkSource, so the callback may be called multiple times
271
+ // with the same chunk id and content.
271
272
//
272
- // If there is a failure reading the chunk, the error will be returned - note that this can happen in the middle of
273
+ // This iterator doesn't have a way to stop the iteration other than the context being canceled. If there is a failure
274
+ // reading the chunk, the error will be returned - note that this can happen in the middle of
273
275
// the scan, and will likely mean that the scan didn't complete. Note that errors returned by this method are not
274
276
// related to the callback - if the callback discovers an error, it must manage that out of band.
275
277
iterateAllChunks (context.Context , func (chunk chunks.Chunk ), * Stats ) error
You can’t perform that action at this time.
0 commit comments