mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Utilize reflectorMutex in LastSyncResourceVersion
This commit is contained in:
parent
518ff2a405
commit
4f54538ae8
@ -131,6 +131,8 @@ func (c *controller) HasSynced() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *controller) LastSyncResourceVersion() string {
|
func (c *controller) LastSyncResourceVersion() string {
|
||||||
|
c.reflectorMutex.RLock()
|
||||||
|
defer c.reflectorMutex.RUnlock()
|
||||||
if c.reflector == nil {
|
if c.reflector == nil {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user