[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:
Depends
is depended on by PHPC-72 Support situational fields in WriteRe... Closed
Related
related to PHPC-24 Implement server discovery and monito... Closed
related to PHPC-454 Remove WriteResult::getInfo() method Closed
related to CDRIVER-625 expose CRUD spec mandated information... Closed

 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.

Generated at Wed Feb 07 21:09:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.