-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.9.1
-
Component/s: Index Maintenance
-
None
-
Environment:Tested on vista 64
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Following on from the test statements executed at the top of SERVER-3589 .
With the downgraded mongod (as per 3589, downgraded from 1.9.3 to 1.8.2), I created another index on the idx1 collection. Then I used getIndexes() to see what I have:
> db.idx1.ensureIndex(
{b:1});
> db.idx1.getIndexes();
[
{
"v" : 1,
"key" :
,
"ns" : "qadb.idx1",
"name" : "id"
},
{
"v" : 1,
"key" :
,
"ns" : "qadb.idx1",
"name" : "a_1_b_1"
},
{
"_id" : ObjectId("4e4596b57e3d39fef5458dfd"),
"ns" : "qadb.idx1",
"key" :
,
"name" : "b_1",
"v" : 0
}
]
>
The b_1 index created with the older server reports an _id, which the newer v:1 indexes do not. This seems like an incorrect non-backwards compatible change – the newer indexes should still have _ids.