diff options
Diffstat (limited to 'src/mongo/db/logical_session_id_helpers.h')
-rw-r--r-- | src/mongo/db/logical_session_id_helpers.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/logical_session_id_helpers.h b/src/mongo/db/logical_session_id_helpers.h index 3d692c701e5..6d1a398c41a 100644 --- a/src/mongo/db/logical_session_id_helpers.h +++ b/src/mongo/db/logical_session_id_helpers.h @@ -56,6 +56,12 @@ SHA256Block getLogicalSessionUserDigestFor(StringData user, StringData db); bool isParentSessionId(const LogicalSessionId& sessionId); /** + * Returns if the given session is a child session, ie it was created on behalf of an operation that + * already had a session. + */ +bool isChildSession(const LogicalSessionId& sessionId); + +/** * Returns the parent session id for the given session id if there is one. */ boost::optional<LogicalSessionId> getParentSessionId(const LogicalSessionId& sessionId); |