diff options
Diffstat (limited to 'src/mongo/db/cursor_manager.h')
-rw-r--r-- | src/mongo/db/cursor_manager.h | 5 |
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. |