[SERVER-3245] $addToSet and $each with an array does not filter duplicates for new field. Created: 12/Jun/11 Updated: 12/Jul/16 Resolved: 22/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 1.8.1 |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Leif Mortenson | Assignee: | Tony Hannan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
I am not sure if this is a regression or if the original bug If the field already exists then the duplicates are correctly filtered. — If, however, the field is new then all of the values are added. — I was able to reproduce this in version 1.8.1. Cheers, |
| Comments |
| Comment by auto [ 22/Sep/11 ] |
|
Author: {u'login': u'TonyGen', u'name': u'Tony Hannan', u'email': u'tony@10gen.com'}Message: |
| Comment by auto [ 22/Sep/11 ] |
|
Author: {u'login': u'TonyGen', u'name': u'Tony Hannan', u'email': u'tony@10gen.com'}Message: |