[CDRIVER-428] Support lastOp and electionId situational fields in write result Created: 18/Sep/14 Updated: 14/Oct/15 Resolved: 28/May/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | 1.2.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jeremy Mikola | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Situational Fields from the write command spec refers to several situational (i.e. optional) fields in the write result. While nModified and upserted are supported, I didn't find anything in the driver for lastOp and electionId. The fields are absent from the internal result struct and there's no reference to them in _mongoc_write_result_complete(). |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 28/May/15 ] |
|
Doesn't seem that other drivers provide any special support for lastOp and electionId in write results. There's not much of a spec for what to do with these fields, and no spec for merging these fields in a bulk write response. |