Ver Fonte

Merge pull request #40588 from sfzhu93/Double_RLock

plugin: fix a double RLock bug
Sebastiaan van Stijn há 5 anos atrás
pai
commit
38f52c9fec
1 ficheiros alterados com 0 adições e 2 exclusões
  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