[SERVER-5346] document field (key) magically changed by mongodb Created: 21/Mar/12 Updated: 07/Mar/14 Resolved: 21/Mar/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Stability, Storage, Usability, Write Ops |
| Affects Version/s: | 1.8.1, 1.8.2, 1.8.3, 2.0.1, 2.0.2, 2.0.3, 2.0.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Stone, Gao | Assignee: | Aaron Staple |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | bug,, magical-mongodb, | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
linux |
||
| Issue Links: |
|
||||||||
| Operating System: | Linux | ||||||||
| Participants: | |||||||||
| Description |
|
Please refer to the following code: // on mongodb 1.8.x use test_db , { $inc : { "versions.2_01" : 1 }} ) db.revs.findOne() } db.revs.update( { _id : doc._id }, { $inc : { "versions.2_1" : 1 }} ) db.revs.findOne() } db.revs.update( { _id : doc._id }, { $inc : { "versions.2_01" : 1 , "01" : 1 } } ) , db.revs.update( { _id : doc._id }, { $inc : { "versions.2_01" : 1 , "1" : 1 } } ) , //========================================================== // on mongodb 2.0.x use test_db , { $inc : { "versions.2_01" : 1 }} ) db.revs.findOne() } db.revs.update( { _id : doc._id }, { $inc : { "versions.2_1" : 1 }} ) db.revs.findOne() } db.revs.update( { _id : doc._id }, { $inc : { "versions.2_01" : 1 , "01" : 1 } } ) , db.revs.update( { _id : doc._id }, { $inc : { "versions.2_01" : 1 , "1" : 1 } } ) , |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 21/Mar/12 ] |
|
This was fixed in |
| Comment by Eliot Horowitz (Inactive) [ 21/Mar/12 ] |
|
This is fixed in head currently (for 2.2) We can see which case resolved this so we can determine if we can backport to 2.0 |
| Comment by auto [ 21/Mar/12 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: explicit test for |