diff options
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r-- | src/mongo/db/service_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp index 09af7608dd0..1509fca8367 100644 --- a/src/mongo/db/service_context.cpp +++ b/src/mongo/db/service_context.cpp @@ -315,7 +315,7 @@ void ServiceContext::killOperation(OperationContext* opCtx, ErrorCodes::Error ki } } -void ServiceContext::killAllUserOperations(const OperationContext* txn, +void ServiceContext::killAllUserOperations(const OperationContext* opCtx, ErrorCodes::Error killCode) { for (LockedClientsCursor cursor(this); Client* client = cursor.next();) { if (!client->isFromUserConnection()) { @@ -327,7 +327,7 @@ void ServiceContext::killAllUserOperations(const OperationContext* txn, OperationContext* toKill = client->getOperationContext(); // Don't kill ourself. - if (toKill && toKill->getOpID() != txn->getOpID()) { + if (toKill && toKill->getOpID() != opCtx->getOpID()) { killOperation(toKill, killCode); } } |