mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
Merge pull request #3930 from splucs/fix-s3-walk-prev-dir
Fix panic in the s3 backend walk logic
This commit is contained in:
commit
0610484e62
@ -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
|
||||
prevSkipDir string
|
||||
)
|
||||
prevDir = prefix + path
|
||||
prevDir = strings.Replace(path, d.s3Path(""), prefix, 1)
|
||||
|
||||
listObjectsInput := &s3.ListObjectsV2Input{
|
||||
Bucket: aws.String(d.Bucket),
|
||||
|
Loading…
Reference in New Issue
Block a user