You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ccl/sqlproxyccl: fixes a data race in the ACL's watcher
Fixescockroachdb#108156. Regression from cockroachdb#108097.
Previously, we updated the code to return w.controllers after releasing the
lock because checkConnection may be long running, and we did not want to block
new connections. We had forgotten the contract where fields on the Watcher
object needs `mu` as they may be updated, so that approach had data races.
This commit address that by ensuring that a copy of w.controllers is returned
instead.
Release note: None
Epic: none
0 commit comments