Similar to CDRIVER-3051, mongoc_collection_remove() and its mongoc_collection_delete() alias both fail to set the has_multi_write flag on a command, which can lead to a server error if retryable writes are enabled.
I found no existing tests for these methods, so I will add a regression test for this issue that utilizes both methods.
- is depended on by
-
CDRIVER-2961 Support Retryable Writes on by Default
- Closed
- related to
-
CDRIVER-2840 Delete Many and Update Many fail with retryWrites enabled
- Closed
-
CDRIVER-3051 Using multi flag with mongoc_collection_update fails if retryWrites=true
- Closed