0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

fix median

This commit is contained in:
Eliot Horowitz 2010-01-29 22:14:43 -05:00
parent 1f84d7aa82
commit 113441207c

View File

@ -882,6 +882,8 @@ namespace mongo {
BSONObj min = jsobj.getObjectField( "min" );
BSONObj max = jsobj.getObjectField( "max" );
BSONObj keyPattern = jsobj.getObjectField( "keyPattern" );
Client::Context ctx( ns );
IndexDetails *id = cmdIndexDetailsForRange( ns, errmsg, min, max, keyPattern );
if ( id == 0 )