summaryrefslogtreecommitdiff
path: root/s/commands_public.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-07-22 08:12:05 -0400
committerEliot Horowitz <eliot@10gen.com>2010-07-22 08:12:05 -0400
commit47d175d72b29156f30e7b613daa6d57b9fc6a118 (patch)
tree92b01611dc309d33d216d8e231b6dc04d3551a5e /s/commands_public.cpp
parentc6a1d6a5523dad551a276c29688ecc810f853ab0 (diff)
downloadmongo-47d175d72b29156f30e7b613daa6d57b9fc6a118.tar.gz
fix count passthrough
Diffstat (limited to 's/commands_public.cpp')
-rw-r--r--s/commands_public.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/s/commands_public.cpp b/s/commands_public.cpp
index ef8c537b802..0e03fe4e2e7 100644
--- a/s/commands_public.cpp
+++ b/s/commands_public.cpp
@@ -216,7 +216,7 @@ namespace mongo {
ShardConnection conn( conf->getPrimary() , fullns );
BSONObj temp;
- bool ok = conn->runCommand( dbName , BSON( "count" << collection << "query" << filter ) , temp );
+ bool ok = conn->runCommand( dbName , cmdObj , temp );
conn.done();
if ( ok ){