diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2018-09-17 11:25:15 -0400 |
---|---|---|
committer | Ted Tuckman <ted.tuckman@mongodb.com> | 2018-09-28 11:46:03 -0400 |
commit | a73b2fc77d72a06380826259620f105e179a4c5c (patch) | |
tree | 9d6b43cc70897531a148270098274da49c67e5ea /src/mongo/db/cursor_manager.h | |
parent | d8e10f2dcc4554c74cf1da9d40557233cad70fb1 (diff) | |
download | mongo-a73b2fc77d72a06380826259620f105e179a4c5c.tar.gz |
SERVER-37003 Add activeCursor field to curOp for getMore
Diffstat (limited to 'src/mongo/db/cursor_manager.h')
-rw-r--r-- | src/mongo/db/cursor_manager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/cursor_manager.h b/src/mongo/db/cursor_manager.h index 4202afadc65..d75053fa4b5 100644 --- a/src/mongo/db/cursor_manager.h +++ b/src/mongo/db/cursor_manager.h @@ -264,7 +264,9 @@ private: * CursorManager partition lock. This is neccessary to protect concurrent access to the data * members of 'cursor', as it prevents other threads from pinning this cursor. */ - GenericCursor buildGenericCursor_inlock(const ClientCursor* cursor) const; + GenericCursor buildGenericCursor_inlock(const ClientCursor* cursor) const { + return cursor->toGenericCursor(); + } ClientCursorPin _registerCursor( OperationContext* opCtx, std::unique_ptr<ClientCursor, ClientCursor::Deleter> clientCursor); |