-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
We recently merged a community PR to fix alignment of atomically-accessed integers. In particular, atomically-accessed integers should be of type Int64 and should be at the top of the struct that houses them. It's been pointed out that topology.Server.connectionstate is an atomically-accessed integer that, while of type Int64, is not at the top of the topology.Server struct. We should move it to the top and note the relevant atomic bug in documentation.
- related to
-
GODRIVER-2157 Detect bit alignment issues when using "sync/atomic" to access struct fields
- Closed