예제 #1
0
 // 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);
 }
예제 #2
0
파일: s_only.cpp 프로젝트: 3rf/mongo
 // 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);
 }