mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-21 09:34:40 +00:00
remove data race on the devicemanager client plugin
Change-Id: I45b85440a792e5ed2f75a344ec1f0332854d8d6d
This commit is contained in:
parent
35f4d29d73
commit
8e0be64b8f
@ -69,8 +69,10 @@ func (c *client) Connect() error {
|
||||
klog.ErrorS(err, "Unable to connect to device plugin client with socket path", "path", c.socket)
|
||||
return err
|
||||
}
|
||||
c.mutex.Lock()
|
||||
c.grpc = conn
|
||||
c.client = client
|
||||
c.mutex.Unlock()
|
||||
return c.handler.PluginConnected(c.resource, c)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user