浏览代码

Merge pull request #41274 from thaJeztah/19.03_backport_Double_RLock

[19.03 backport] plugin: fix a double RLock bug
Tibor Vass 5 年之前
父节点
当前提交
22c458b67c
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      plugin/store.go

+ 0 - 2
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