diff options
author | James Wahlin <james@mongodb.com> | 2018-03-27 16:27:34 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-03-28 09:15:21 -0400 |
commit | 9b6da195207b71348dd1811dfbd6f8ca5c9b7428 (patch) | |
tree | efd9f073ffcb9d5237bb0a4fc695aefe08eb7c6b /src/mongo/db/session_catalog.h | |
parent | 82e4873c00f01e4dcb5aad4a6550a82ec4aa4a65 (diff) | |
download | mongo-9b6da195207b71348dd1811dfbd6f8ca5c9b7428.tar.gz |
SERVER-34101 Revert change to free transaction resources on snapshot read killCursors
Diffstat (limited to 'src/mongo/db/session_catalog.h')
-rw-r--r-- | src/mongo/db/session_catalog.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mongo/db/session_catalog.h b/src/mongo/db/session_catalog.h index 1c68fdaa623..657f6baf405 100644 --- a/src/mongo/db/session_catalog.h +++ b/src/mongo/db/session_catalog.h @@ -106,18 +106,6 @@ public: ScopedSession getOrCreateSession(OperationContext* opCtx, const LogicalSessionId& lsid); /** - * Returns a reference to the specified cached session if it exists, regardless of whether it is - * checked-out or not. The returned session is not returned checked-out and is allowed to be - * checked-out concurrently. - * - * The intended usage for this method is to allow cursor destruction that may abort the - * transaction to run in parallel with operations for the same session without blocking it. - * Because of this, it may not be used from operations which run on a session. - */ - boost::optional<ScopedSession> getSession(OperationContext* opCtx, - const LogicalSessionId& lsid); - - /** * Callback to be invoked when it is suspected that the on-disk session contents might not be in * sync with what is in the sessions cache. * @@ -169,15 +157,6 @@ private: WithLock, OperationContext* opCtx, const LogicalSessionId& lsid); /** - * May release and re-acquire it zero or more times before returning. The returned - * 'SessionRuntimeInfo' is guaranteed to be linked on the catalog's _txnTable as long as the - * lock is held. If the requested 'SessionRuntimeInfo' does not exist, returns nullptr. - */ - std::shared_ptr<SessionRuntimeInfo> _getSessionRuntimeInfo(WithLock, - OperationContext* opCtx, - const LogicalSessionId& lsid); - - /** * Makes a session, previously checked out through 'checkoutSession', available again. */ void _releaseSession(const LogicalSessionId& lsid); |