Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2236

Atomic alignment of connectionstate in topology.Server

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.0
    • 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.

            Assignee:
            matt.dale@mongodb.com Matt Dale
            Reporter:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: