summaryrefslogtreecommitdiff
path: root/src/mongo/db/cursor_manager.h
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2017-12-05 12:47:34 -0500
committerSara Golemon <sara.golemon@mongodb.com>2017-12-12 15:37:52 -0500
commit0c0133f83aeb7930e90cb006e89cfce68aad2ad2 (patch)
treeb35647cd1c79e2032189c8787d2b0cbe3892fec1 /src/mongo/db/cursor_manager.h
parent2079d32e604fc3139bab4b4db7d2a9c748018a6a (diff)
downloadmongo-0c0133f83aeb7930e90cb006e89cfce68aad2ad2.tar.gz
SERVER-32169 Allow killCursors to kill across lsids
Diffstat (limited to 'src/mongo/db/cursor_manager.h')
-rw-r--r--src/mongo/db/cursor_manager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/cursor_manager.h b/src/mongo/db/cursor_manager.h
index 2736fd181b6..a292867cea1 100644
--- a/src/mongo/db/cursor_manager.h
+++ b/src/mongo/db/cursor_manager.h
@@ -167,7 +167,10 @@ public:
* handle this error, as it should only happen if a misbehaving client attempts to
* simultaneously issue two operations against the same cursor id.
*/
- StatusWith<ClientCursorPin> pinCursor(OperationContext* opCtx, CursorId id);
+ enum AuthCheck { kCheckSession = true, kNoCheckSession = false };
+ StatusWith<ClientCursorPin> pinCursor(OperationContext* opCtx,
+ CursorId id,
+ AuthCheck checkSessionAuth = kCheckSession);
/**
* Returns an OK status if the cursor was successfully erased.