mirror of
https://github.com/distribution/distribution.git
synced 2025-06-29 00:37:30 +00:00
Ensure GC continues marking if _manifests is nonexistent
Signed-off-by: Tony Holdstock-Brown <tony@docker.com>
This commit is contained in:
parent
cd4f752e49
commit
898fdb48a1
@ -96,6 +96,17 @@ func markAndSweep(ctx context.Context, storageDriver driver.StorageDriver, regis
|
|||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
// In certain situations such as unfinished uploads, deleting all
|
||||||
|
// tags in S3 or removing the _manifests folder manually, this
|
||||||
|
// error may be of type PathNotFound.
|
||||||
|
//
|
||||||
|
// In these cases we can continue marking other manifests safely.
|
||||||
|
if _, ok := err.(driver.PathNotFoundError); ok {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user