diff options
Diffstat (limited to 'src/mongo/db/run_commands.cpp')
-rw-r--r-- | src/mongo/db/run_commands.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/run_commands.cpp b/src/mongo/db/run_commands.cpp index 41adbdfb507..ec9372c87a3 100644 --- a/src/mongo/db/run_commands.cpp +++ b/src/mongo/db/run_commands.cpp @@ -40,7 +40,7 @@ namespace mongo { -void runCommands(OperationContext* txn, +void runCommands(OperationContext* opCtx, const rpc::RequestInterface& request, rpc::ReplyBuilderInterface* replyBuilder) { try { @@ -66,15 +66,15 @@ void runCommands(OperationContext* txn, { // Try to set this as early as possible, as soon as we have figured out the command. - stdx::lock_guard<Client> lk(*txn->getClient()); - CurOp::get(txn)->setLogicalOp_inlock(c->getLogicalOp()); + stdx::lock_guard<Client> lk(*opCtx->getClient()); + CurOp::get(opCtx)->setLogicalOp_inlock(c->getLogicalOp()); } - Command::execCommand(txn, c, request, replyBuilder); + Command::execCommand(opCtx, c, request, replyBuilder); } catch (const DBException& ex) { - Command::generateErrorResponse(txn, replyBuilder, ex, request); + Command::generateErrorResponse(opCtx, replyBuilder, ex, request); } } |