Clearer comment
Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
This commit is contained in:
parent
3c8b280408
commit
6deeec4699
1 changed files with 3 additions and 3 deletions
|
@ -46,9 +46,9 @@ func doWalkFallback(ctx context.Context, driver StorageDriver, from string, star
|
||||||
for _, child := range children {
|
for _, child := range children {
|
||||||
// (@jamstah) This will still walk objects that are before the startAfterHint,
|
// (@jamstah) This will still walk objects that are before the startAfterHint,
|
||||||
// but to avoid that we would need to cache top level folders to check if there
|
// but to avoid that we would need to cache top level folders to check if there
|
||||||
// are any children then call the WalkFn, which is extra overhead. As the
|
// are any valid children then call the WalkFn for the cached entries only if
|
||||||
// hint is just a hint for performance reasons, its fine to walk the extra
|
// there are, which is extra overhead. Because the hint is just a hint for
|
||||||
// objects instead.
|
// performance reasons, its fine to walk the extra objects instead.
|
||||||
if child < startAfterHint && !strings.HasPrefix(startAfterHint, child) {
|
if child < startAfterHint && !strings.HasPrefix(startAfterHint, child) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue