1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #41274 from thaJeztah/19.03_backport_Double_RLock

[19.03 backport] plugin: fix a double RLock bug
This commit is contained in:
Tibor Vass 2020-07-28 14:27:10 +02:00 committed by GitHub
commit 22c458b67c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,9 +188,7 @@ func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, er
* bypassing the daemon. For such tests, this check is necessary.
*/
if ps != nil {
ps.RLock()
result = ps.getAllByCap(capability)
ps.RUnlock()
}
// Lookup with legacy model