-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.4.9
-
Component/s: Index Maintenance, Querying
-
Major Change
-
ALL
In 2.4 you can ensure an index and cause $gt/$gte queries to no longer match against infinity.
2.4.9:
> mydb.a.insert({_id: 0, a: Infinity}) > mydb.a.find({a:{$gt: 1}}) { "_id" : 0, "a" : Infinity } > mydb.a.ensureIndex({a:1}) > mydb.a.find({a:{$gt: 1}})
In 2.5.5-pre this is handled correctly:
> db.a.insert({_id: 0, a: Infinity}) > db.a.find({a:{$gt: 1}}) { "_id" : 0, "a" : Infinity } > db.a.ensureIndex({a:1}) > db.a.find({a:{$gt: 1}}) { "_id" : 0, "a" : Infinity }
- is duplicated by
-
SERVER-11617 Sorting with value of Infinity causes assertion
- Closed