[SERVER-1339] updates with $ miss some index updates WAS: Wrong entries returned if same property name used twice in a document Created: 01/Jul/10 Updated: 12/Jul/16 Resolved: 01/Jul/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance, Write Ops |
| Affects Version/s: | 1.4.4, 1.5.3 |
| Fix Version/s: | 1.5.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Niko Sams | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Debian Linux 32-Bit |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
Steps to reproduce: //create initial data , testarray:[ {foobar_id:316, visible:true, xxx: 1}]}); ); //it is found correctly }}); , "testarray" : [ { "foobar_id" : 316, "visible" : true, "xxx" : 1 } ] } }}); , "testarray" : [ { "foobar_id" : 316, "visible" : true, "xxx" : 1 }] } //update the array , {'$set': {'testarray.$.visible': true, 'testarray.$.xxx': 2}}, false, true); //verify it updated correctly , "testarray" : [ { "foobar_id" : 316, "visible" : true, "xxx" : 2 }] } //this find still works }}); , "testarray" : [ { "foobar_id" : 316, "visible" : true, "xxx" : 2 }] } //here comes the issue, nothing found here }}); just commands for easy copy&paste: , testarray:[ {foobar_id:316, visible:true, xxx: 1}]}); ); }}); }}); , {'$set': {'testarray.$.visible': true, 'testarray.$.xxx': 2}}, false, true); }}); }}); renaming one "visible" property is a workaround. |
| Comments |
| Comment by auto [ 01/Jul/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: fix $ update with indexes in some cases |