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

Rely on _mongoc_write_command_execute_idl to report client-side error for unsupported arrayFilters option

      Something else I noticed while implementing CDRIVER-3400 is that _mongoc_collection_update_or_replace's error reporting for specifying arrayFilters when unsupported by the selected server appears to be redundant in light of existing logic in _mongoc_write_command_execute_idl (which is used for collation). That code dates back to c4af4aa for CDRIVER-2664.

      We should see if setting the mongoc_write_command_t.flags.has_array_filters in _mongoc_collection_update_or_replace would allow us to delete the error reporting code in that function.

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

              Created:
              Updated: