[SERVER-7586] UpdateResult::mod always set to 0 when _id doesn't match anything Created: 07/Nov/12 Updated: 18/Jul/14 Resolved: 18/Jul/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Kristina Chodorow (Inactive) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
AFAICT, mod should be 1 if it's a $-mod update, whether or not it finds a doc to mod. _updateById sets mod to 0 indiscriminately if the _id is not found. |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 18/Jul/14 ] |
|
All completely re-written in 2.6, and tested |