Remove checks for null read preference tags

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.0.0-beta1
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When a mongoc_read_prefs_t is allocated, the tags are initialized to an empty BSON document. We should be able to remove checks like intern->read_preference->tags.len in the ReadPreference methods and debug handlers, as the places where we would return a NULL PHP value are never reached.

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: