[SERVER-2626] Excluding _id field doesn't work with FindAndModify Created: 25/Feb/11 Updated: 12/Jul/16 Resolved: 31/May/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alex Brown | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 64 |
||
| Issue Links: |
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
If I have the following document: db.sequence.findAndModify({ , , Notice the fields: {"_id":0}, part- Uncaught exception: findAndModifyFailed failed: "exception: assertion c:\\builds\laves\\mongo\\windows_64bit_v1.6\\mongo\\db |
| Comments |
| Comment by auto [ 31/May/11 ] |
|
Author: {u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Make findAndModify work when _id is removed in projection |
| Comment by Mathias Stearn [ 28/Feb/11 ] |
|
This is a limitation based on how FindAndModify is implemented. We are planning on reimplementing it which should remove this restriction |