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 | ||
field_data.go | ||
field_data_test.go | ||
field_type.go | ||
lease.go | ||
lease_test.go | ||
path.go | ||
path_map.go | ||
path_map_test.go | ||
path_struct.go | ||
path_struct_test.go | ||
policy_map.go | ||
policy_map_test.go | ||
secret.go | ||
secret_test.go | ||
template.go | ||
testing.go | ||
wal.go | ||
wal_test.go |