diff options
Diffstat (limited to 'db/mr.cpp')
-rw-r--r-- | db/mr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/mr.cpp b/db/mr.cpp index 0baa5e976cd..4521f7631ca 100644 --- a/db/mr.cpp +++ b/db/mr.cpp @@ -255,7 +255,9 @@ namespace mongo { _tlmr.reset( mrtl ); BSONObj q; - + if ( cmdObj["query"].type() == Object ) + q = cmdObj["query"].embeddedObjectUserCheck(); + auto_ptr<DBClientCursor> cursor = db.query( ns , q ); while ( cursor->more() ){ BSONObj o = cursor->next(); |