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:
parent
b999749360
commit
77c6ea6148
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user