summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_session_id_helpers.h
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2021-07-30 06:51:46 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-14 19:06:09 +0000
commit632105d33ab6931e86626db08160800d41bb1329 (patch)
treef83fb20871b79b90dda37130489745223cefa350 /src/mongo/db/logical_session_id_helpers.h
parentdcfb71ae6c7e0f5b2809a4e04bb534a1d6b0ce12 (diff)
downloadmongo-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.h5
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,