0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Sharding: fix command path MINOR

This commit is contained in:
Eliot Horowitz 2009-04-21 14:31:30 -04:00
parent b999749360
commit 77c6ea6148

View File

@ -14,10 +14,10 @@ namespace mongo {
bool lateAssert = false;
log(3) << "single query: " << q.ns << " " << q.query << endl;
log(3) << "single query: " << q.ns << " " << q.query << " ntoreturn: " << q.ntoreturn << endl;
try {
if ( q.ntoreturn == 1 && strstr(q.ns, ".$cmd") ) {
if ( ( q.ntoreturn == -1 || q.ntoreturn == 1 ) && strstr(q.ns, ".$cmd") ) {
BSONObjBuilder builder;
bool ok = runCommandAgainstRegistered(q.ns, q.query, builder);
if ( ok ) {