summaryrefslogtreecommitdiff
path: root/src/mongo/db/cursor_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/cursor_manager.cpp')
-rw-r--r--src/mongo/db/cursor_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/cursor_manager.cpp b/src/mongo/db/cursor_manager.cpp
index 6c8fcf0c29a..853830e413c 100644
--- a/src/mongo/db/cursor_manager.cpp
+++ b/src/mongo/db/cursor_manager.cpp
@@ -617,7 +617,7 @@ Status CursorManager::killCursor(OperationContext* opCtx, CursorId id, bool shou
{
stdx::unique_lock<Client> lk(*cursor->_operationUsingCursor->getClient());
cursor->_operationUsingCursor->getServiceContext()->killOperation(
- cursor->_operationUsingCursor, ErrorCodes::CursorKilled);
+ lk, cursor->_operationUsingCursor, ErrorCodes::CursorKilled);
}
if (shouldAudit) {