From 32366de5f982b85ff8fc8e32d3afadbcc540cf13 Mon Sep 17 00:00:00 2001 From: Ziheng Liu Date: Tue, 25 Feb 2020 13:51:13 -0500 Subject: [PATCH] plugin: fix a double RLock bug Signed-off-by: Ziheng Liu (cherry picked from commit 34837febc42859f7e8804a3417db133c963e38b3) Signed-off-by: Sebastiaan van Stijn --- plugin/store.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugin/store.go b/plugin/store.go index 8e96c11da4..4f9da32e41 100644 --- a/plugin/store.go +++ b/plugin/store.go @@ -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