diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-10-08 20:02:02 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-10-08 20:02:02 -0400 |
commit | 55757f1547572b45910a933e742429aba84d7deb (patch) | |
tree | 6f6df4740d2f4c02fb17922c19c9f6a570772905 /db/dbcommands.cpp | |
parent | 39e85295584e438fa7b31369beaedb36593a2a68 (diff) | |
download | mongo-55757f1547572b45910a933e742429aba84d7deb.tar.gz |
more flexible group MINOR
Diffstat (limited to 'db/dbcommands.cpp')
-rw-r--r-- | db/dbcommands.cpp | 4 |
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 ); |