[CDRIVER-893] Support bypassDocumentValidation Created: 30/Sep/15 Updated: 02/Dec/15 Resolved: 20/Oct/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.2.0 |
| Fix Version/s: | 1.3.0-beta0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Rathi Gnanasekaran | Assignee: | Hannes Magnusson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Epic Link: | MongoDB 3.2 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Added new mongoc_bulk_write_flags_t "flags" which replaces the existing "ordered" field in the mongoc_bulk_operation_t (private) struct. This new struct contains various "bulk write" (e.g. "command write API") options.
Added new functions:
When creating a new mongoc_bulk_write_flags_t it SHOULD be initialized using the MONGOC_BULK_WRITE_FLAGS_INIT macro like so:
Which initializes the flags as
When user explicitly passes bypass_document_validation it will be sent to the server – irregardless of its wire protocol version. |
| Comments |
| Comment by Githook User [ 02/Dec/15 ] |
|
Author: {u'username': u'derickr', u'name': u'Derick Rethans', u'email': u'github@derickrethans.nl'}Message: Ordered flag has moved into 'flags' struct ( |
| Comment by Derick Rethans [ 17/Nov/15 ] |
|
Added the field name into the ticket, to be complete in its documentation. |
| Comment by Githook User [ 26/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Hannes Magnusson [ 20/Oct/15 ] |
|
Resolving again – any additional command helpers that need to support bypassDocumentValidation should be their own tickets as they'd require fully new functions anyway (see |
| Comment by Kyle Suarez [ 16/Oct/15 ] |
|
The C Driver must also support bypassDocumentValidation for the findAndModify command; specifically, mongoc_collection_find_and_modify(). |
| Comment by Githook User [ 15/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |
| Comment by Githook User [ 12/Oct/15 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |