Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1447

Logic bug in tag_sets

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: 1.2.0
    • Component/s: None
    • None

      Bug in server selection when there are multiple mismatches in the tag sets. E.g., read preference tag_sets like:

      [{a: "one", b: "one"}]
      

      And two secondaries with tags:

      secondary A: {a: "two", b: "two"}
      secondary B: {a: "one", b: "one"}
      

      The C Driver keeps a count of mismatched RS members as it's processing a tag set. Unfortunately, it decrements that count for each mismatched tag instead of each mismatched tag set, so it finishes with a count of zero instead of the correct count of one.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: