forked from TrueCloudLab/distribution
Fix panic in the s3 backend walk logic
Signed-off-by: Lucas França de Oliveira <lucasfdo@palantir.com>
This commit is contained in:
parent
983358f8e2
commit
035a8ec52a
1 changed files with 1 additions and 1 deletions
|
@ -1070,7 +1070,7 @@ func (d *driver) doWalk(parentCtx context.Context, objectCount *int64, path, pre
|
||||||
// the most recent skip directory to avoid walking over undesirable files
|
// the most recent skip directory to avoid walking over undesirable files
|
||||||
prevSkipDir string
|
prevSkipDir string
|
||||||
)
|
)
|
||||||
prevDir = prefix + path
|
prevDir = strings.Replace(path, d.s3Path(""), prefix, 1)
|
||||||
|
|
||||||
listObjectsInput := &s3.ListObjectsV2Input{
|
listObjectsInput := &s3.ListObjectsV2Input{
|
||||||
Bucket: aws.String(d.Bucket),
|
Bucket: aws.String(d.Bucket),
|
||||||
|
|
Loading…
Add table
Reference in a new issue