summaryrefslogtreecommitdiff
path: root/db/dbcommands.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-08 20:02:02 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-08 20:02:02 -0400
commit55757f1547572b45910a933e742429aba84d7deb (patch)
tree6f6df4740d2f4c02fb17922c19c9f6a570772905 /db/dbcommands.cpp
parent39e85295584e438fa7b31369beaedb36593a2a68 (diff)
downloadmongo-55757f1547572b45910a933e742429aba84d7deb.tar.gz
more flexible group MINOR
Diffstat (limited to 'db/dbcommands.cpp')
-rw-r--r--db/dbcommands.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp
index 83f42ab6bf4..6d999db1448 100644
--- a/db/dbcommands.cpp
+++ b/db/dbcommands.cpp
@@ -1349,6 +1349,10 @@ namespace mongo {
BSONObj q;
if ( p["cond"].type() == Object )
q = p["cond"].embeddedObject();
+ else if ( p["condition"].type() == Object )
+ q = p["condition"].embeddedObject();
+ else if ( p["q"].type() == Object )
+ q = p["q"].embeddedObject();
string ns = dbname;
ns = ns.substr( 0 , ns.size() - 4 );