[SERVER-2589] uncaught exception in findAndModify when removing doc with _id turned off Created: 18/Feb/11 Updated: 03/Dec/15 Resolved: 03/Dec/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Antoine Girbal | Assignee: | David Storch |
| Resolution: | Done | Votes: | 0 |
| Labels: | findAndModify | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
probably minor bug.. foo:PRIMARY> db.test.find() { "_id" : ObjectId("4d5d9381352dd47f2e62f58a"), "a" : 3 } { "_id" : ObjectId("4d5d9381352dd47f2f62f58a"), "a" : 3 } { "_id" : ObjectId("4d5d9381352dd47f3062f58a"), "a" : 3 } { "_id" : ObjectId("4d5d9381352dd47f3162f58a"), "a" : 3 } { "_id" : ObjectId("4d5d9381352dd47f3262f58a"), "a" : 3 } { "_id" : ObjectId("4d5d9381352dd47f3362f58a"), "a" : 3 } { "_id" : ObjectId("4d5d9381352dd47f3462f58a"), "a" : 3 } { "_id" : ObjectId("4d5d9381352dd47f3562f58a"), "a" : 3 } { "_id" : ObjectId("4d5d9381352dd47f3662f58a"), "a" : 3 }foo:PRIMARY> db.test.findAndModify({query: {a:3}, fields: {_id: 0, a: 1}, remove: true }) , fields: {a: 1}, remove: true }) { "_id" : ObjectId("4d5d9381352dd47f2f62f58a"), "a" : 3 } |
| Comments |
| Comment by David Storch [ 03/Dec/15 ] |
|
I cannot reproduce on recent versions. Closing as Gone Away. |