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

Do not check writeConcernError in mongoc_error_has_label()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.26.0
    • Affects Version/s: None
    • Component/s: None
    • None

      3ee5fbb for CDRIVER-3462 originally added this logic to mongoc_error_has_label(), but this is not needed. Per DRIVERS-1385, no stable release of the server has ever returned error labels within the writeConcernError field of a command response.

      Since syncing spec tests for DRIVERS-1385 in CDRIVER-4210, there is no longer any case where libmongoc would encounter error labels within writeConcernError (they were previously added to synthetic failCommand responses).

      This was pointed out by kevin.albertson@mongodb.com in the mongodb/mongo-c-driver#1501 for CDRIVER-4754.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: