|
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.
|