Merge pull request #49985 from dqminh/fix-race-federation-controller
Automatic merge from submit-queue
federation-controller/clustercontroller: fix race when updating data
Fix #49958
Updates for ClusterController's maps were made without locking which can lead
to race conditions.
This change adds a RWMutex to protect the data. We lock and unlock them
whenever the data is accessed to make sure that we dont slow down too much
Showing
Please
register
or
sign in
to comment