[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: |
|
||||||||||||
| 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: |