Ensure GC continues marking if _manifests is nonexistent
Signed-off-by: Tony Holdstock-Brown <tony@docker.com>
This commit is contained in:
parent
0a1fcf9712
commit
011b7e493b
1 changed files with 11 additions and 0 deletions
|
@ -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 a new issue