8916f6b625
Taking inspiration from https://github.com/golang/go/issues/17604#issuecomment-256384471 suggests that taking the address of a stack variable for use in atomics works (at least, the race detector doesn't complain) but is doing it wrong. The only other change is a change in Leader() detecting if HA is enabled to fast-path out. This value never changes after NewCore, so we don't need to grab the read lock to check it. |
||
---|---|---|
.. | ||
backend.go | ||
backend_test.go | ||
cli.go | ||
client.go | ||
path_config_certificate.go | ||
path_config_client.go | ||
path_config_client_test.go | ||
path_config_sts.go | ||
path_config_tidy_identity_whitelist.go | ||
path_config_tidy_roletag_blacklist.go | ||
path_identity_whitelist.go | ||
path_login.go | ||
path_login_test.go | ||
path_role.go | ||
path_role_tag.go | ||
path_role_test.go | ||
path_roletag_blacklist.go | ||
path_tidy_identity_whitelist.go | ||
path_tidy_roletag_blacklist.go |