mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
plugin: fix a double RLock bug
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com>
(cherry picked from commit 34837febc4)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
d49278cc17
commit
32366de5f9
@@ -188,9 +188,7 @@ func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, er
|
|||||||
* bypassing the daemon. For such tests, this check is necessary.
|
* bypassing the daemon. For such tests, this check is necessary.
|
||||||
*/
|
*/
|
||||||
if ps != nil {
|
if ps != nil {
|
||||||
ps.RLock()
|
|
||||||
result = ps.getAllByCap(capability)
|
result = ps.getAllByCap(capability)
|
||||||
ps.RUnlock()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lookup with legacy model
|
// Lookup with legacy model
|
||||||
|
|||||||
Reference in New Issue
Block a user