[SERVER-3218] when i update a object, if a key not in object it should insert a new key, but i fact my existsing key are replaced by key Created: 08/Jun/11 Updated: 12/Jul/16 Resolved: 26/Jun/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | gsk | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongodb 1.8.2 |
||
| Issue Links: |
|
||||||||
| Operating System: | Windows | ||||||||
| Participants: | |||||||||
| Description |
|
> , 'c':2}) , {'$inc':{'a.c000':1}}) > db.test.foo.find( {"c":2}) , "c" : 2 } why not {"a": {'c000":1, 'c00':1}, 'c':2} |
| Comments |
| Comment by auto [ 16/Dec/11 ] |
|
Author: {u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |
| Comment by auto [ 26/Jun/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: fix lexNumCmp for middle 0 |
| Comment by Antoine Girbal [ 09/Jun/11 ] |
|
bug is in goodies.h line 515. inline int lexNumCmp( const char *s1, const char *s2 ) { if ( n1 && n2 ) { So any inner 0 is skipped for comparison. |