[SERVER-30532] Add lastErrorObject.upserted to findAndModify retry response Created: 07/Aug/17  Updated: 30/Oct/23  Resolved: 17/Oct/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.0-rc1

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-30505 Add generic idl type that represents ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-10-02, Sharding 2017-10-23
Participants:

 Comments   
Comment by Githook User [ 17/Oct/17 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev', 'username': 'kaloianm'}

Message: SERVER-30532 Remove IDL-generated parser for the findAndModify result

Instead only use a generator, but not parser. Also adds
lastErrorObject.upserted to the findAndModify retry result.
Branch: master
https://github.com/mongodb/mongo/commit/d77201bbde61bf9e19eca81d73bbcb8bd85c757c

Comment by Githook User [ 11/Oct/17 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev', 'username': 'kaloianm'}

Message: SERVER-30532 Rename find_and_modify.h to find_and_modify_common.h
Branch: master
https://github.com/mongodb/mongo/commit/8ae0a291325cccbf8dc94124c8fef88565065275

Comment by Randolph Tan [ 21/Aug/17 ]

After talking with mark.benvenuto, it looks like it is possible to use chain types to implement this.

Example idl type definition:
https://github.com/mongodb/mongo/blob/cc20ad4cf5fa24c750df8703c8ccac1e052cb787/src/mongo/idl/unittest.idl#L91-L96
Example usage:
https://github.com/mongodb/mongo/blob/cc20ad4cf5fa24c750df8703c8ccac1e052cb787/src/mongo/idl/unittest.idl#L440-L441

Generated at Thu Feb 08 04:24:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.