summaryrefslogtreecommitdiff
path: root/db/dbcommands.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-01-29 22:14:43 -0500
committerEliot Horowitz <eliot@10gen.com>2010-01-29 22:14:43 -0500
commit113441207c8a9f3c35a290e97ec5b72697a69e50 (patch)
treee8a5abb66335591a7d0fcd041c70936741ce9d2f /db/dbcommands.cpp
parent1f84d7aa8245d9a7fe2d9fddbbb2eeb28a1bcbfb (diff)
downloadmongo-113441207c8a9f3c35a290e97ec5b72697a69e50.tar.gz
fix median
Diffstat (limited to 'db/dbcommands.cpp')
-rw-r--r--db/dbcommands.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp
index 8ebc53eebe7..4ca489ea349 100644
--- a/db/dbcommands.cpp
+++ b/db/dbcommands.cpp
@@ -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 )