diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-07-22 08:12:05 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-07-22 08:12:05 -0400 |
commit | 47d175d72b29156f30e7b613daa6d57b9fc6a118 (patch) | |
tree | 92b01611dc309d33d216d8e231b6dc04d3551a5e /s/commands_public.cpp | |
parent | c6a1d6a5523dad551a276c29688ecc810f853ab0 (diff) | |
download | mongo-47d175d72b29156f30e7b613daa6d57b9fc6a118.tar.gz |
fix count passthrough
Diffstat (limited to 's/commands_public.cpp')
-rw-r--r-- | s/commands_public.cpp | 2 |
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 ){ |