[SERVER-10943] Return server-generated _id from upsert Created: 27/Sep/13  Updated: 02/Aug/18  Resolved: 31/Oct/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5.4

Type: Task Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Gregory McKeon (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on DRIVERS-97 New Write command API & New fluent bu... Closed
is depended on by DRIVERS-97 New Write command API & New fluent bu... Closed
Participants:

 Description   

getLastError after an old-style upsert includes the server-generated _id. Some application developers rely on this information. To preserve the same functionality in the update command with upserts, the command should also return server-generated _ids when an upsert results in an insert.



 Comments   
Comment by Alberto Lerner [ 31/Oct/13 ]

Author:

{u'username': u'alerner', u'name': u'Alberto Lerner', u'email': u'alerner@10gen.com'}

Message: SERVER-10521 SERVER-10943 Implement v0.5 version of write commands protocol
Branch: master
https://github.com/mongodb/mongo/commit/41633fff781a94fdac26895a55b5741a035d9c81

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