[SERVER-8680] $setOnInsert should not create an empty parent object when it should be a no op Created: 22/Feb/13 Updated: 11/Jul/16 Resolved: 27/Feb/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 2.4.0-rc1 |
| Fix Version/s: | 2.4.0-rc2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Alberto Lerner |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
If $setOnInsert has dontApply == true, it should probably bail out early from _appendNewFromMods like the rename mods:
Test
Output
|
| Comments |
| Comment by auto [ 27/Feb/13 ] |
|
Author: {u'date': u'2013-02-27T03:27:12Z', u'name': u'Alberto Lerner', u'email': u'alerner@10gen.com'}Message: |
| Comment by Aaron Staple [ 22/Feb/13 ] |
|
Oops - thanks! |