Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com> (cherry picked from commit 34837febc42859f7e8804a3417db133c963e38b3) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@@ -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