Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 9f4029e

Browse files
lzhfromustcthaJeztah
authored andcommitted
plugin: fix a double RLock bug
Signed-off-by: Ziheng Liu <lzhfromustc@gmail.com> (cherry picked from commit 34837febc42859f7e8804a3417db133c963e38b3) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 32366de5f982b85ff8fc8e32d3afadbcc540cf13 Component: engine
1 parent 820098f commit 9f4029e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

components/engine/plugin/store.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, er
188188
* bypassing the daemon. For such tests, this check is necessary.
189189
*/
190190
if ps != nil {
191-
ps.RLock()
192191
result = ps.getAllByCap(capability)
193-
ps.RUnlock()
194192
}
195193

196194
// Lookup with legacy model

0 commit comments

Comments
 (0)