// Need a version that takes a Client to match the mongod interface so the web server can call // execCommand and not need to worry if it's in a mongod or mongos. void Command::execCommand(Command * c, Client& client, int queryOptions, const char *ns, BSONObj& cmdObj, BSONObjBuilder& result, bool fromRepl ) { execCommandClientBasic(c, client, queryOptions, ns, cmdObj, result, fromRepl); }
// Need a version that takes a Client to match the mongod interface so the web server can call // execCommand and not need to worry if it's in a mongod or mongos. void Command::execCommand(OperationContext* txn, Command * c, int queryOptions, const char *ns, BSONObj& cmdObj, BSONObjBuilder& result, bool fromRepl ) { execCommandClientBasic(txn, c, *txn->getClient(), queryOptions, ns, cmdObj, result, fromRepl); }