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

Atomic alignment of connectionstate in topology.Server

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.8.0
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: