diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2021-07-30 06:51:46 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-14 19:06:09 +0000 |
commit | 632105d33ab6931e86626db08160800d41bb1329 (patch) | |
tree | f83fb20871b79b90dda37130489745223cefa350 /src/mongo/db/logical_session_id_helpers.h | |
parent | dcfb71ae6c7e0f5b2809a4e04bb534a1d6b0ce12 (diff) | |
download | mongo-632105d33ab6931e86626db08160800d41bb1329.tar.gz |
SERVER-58751 Support internal sessions
Diffstat (limited to 'src/mongo/db/logical_session_id_helpers.h')
-rw-r--r-- | src/mongo/db/logical_session_id_helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/logical_session_id_helpers.h b/src/mongo/db/logical_session_id_helpers.h index 920a8764864..f2c01603cec 100644 --- a/src/mongo/db/logical_session_id_helpers.h +++ b/src/mongo/db/logical_session_id_helpers.h @@ -50,6 +50,11 @@ SHA256Block getLogicalSessionUserDigestForLoggedInUser(const OperationContext* o SHA256Block getLogicalSessionUserDigestFor(StringData user, StringData db); /** + * Returns the parent session id for the given session id if there is one. + */ +boost::optional<LogicalSessionId> getParentSessionId(const LogicalSessionId& sessionId); + +/** * Factory functions to generate logical session records. */ LogicalSessionId makeLogicalSessionId(const LogicalSessionFromClient& lsid, |