mirror of
https://github.com/restic/restic.git
synced 2025-08-12 16:17:41 +00:00
swift backend: limit http concurrency in Save(), Stat(), Test(), Remove(),
List(). move comment regarding problematic List() backend api (it's s3's ListObjects that has a problem, NOT swift's ObjectsWalk). As per discussion in PR #1399.
This commit is contained in:
@@ -433,6 +433,9 @@ func (be *Backend) List(ctx context.Context, t restic.FileType) <-chan string {
|
||||
prefix += "/"
|
||||
}
|
||||
|
||||
// NB: unfortunately we can't protect this with be.sem.GetToken() here.
|
||||
// Doing so would enable a deadlock situation (gh-1399), as ListObjects()
|
||||
// starts its own goroutine and returns results via a channel.
|
||||
listresp := be.client.ListObjects(be.cfg.Bucket, prefix, true, ctx.Done())
|
||||
|
||||
go func() {
|
||||
|
Reference in New Issue
Block a user