summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_session_id.idl
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-08-01 15:50:37 -0400
committersamantharitter <samantha.ritter@10gen.com>2017-08-02 19:21:34 -0400
commit68051585b17682c1e13acdf440b2c78868054513 (patch)
tree1b677a81d5ef5d801a69cd9ce7fa7a9d7aac6295 /src/mongo/db/logical_session_id.idl
parent0eea3fc035718c7ae6fc570670f1c51f8f3d71a5 (diff)
downloadmongo-68051585b17682c1e13acdf440b2c78868054513.tar.gz
SERVER-29201 Implement SessionsCollectionStandalone
Diffstat (limited to 'src/mongo/db/logical_session_id.idl')
-rw-r--r--src/mongo/db/logical_session_id.idl17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/mongo/db/logical_session_id.idl b/src/mongo/db/logical_session_id.idl
index ccedd28e6f6..c540c3c2174 100644
--- a/src/mongo/db/logical_session_id.idl
+++ b/src/mongo/db/logical_session_id.idl
@@ -64,12 +64,27 @@ structs:
id: LogicalSessionIdToClient
timeoutMinutes: int
+ UserNameWithId:
+ description: "A struct representing the combination of a UserName and an id"
+ strict: true
+ fields:
+ name:
+ type: string
+ id:
+ type: objectid
+ optional: true
+
LogicalSessionRecord:
description: "A struct representing a LogicalSessionRecord"
strict: true
fields:
- id: LogicalSessionId
+ _id:
+ type: LogicalSessionId
+ cpp_name: id
lastUse: date
+ user:
+ type: UserNameWithId
+ optional: true
LogicalSessionFromClient:
description: "A struct representing a LogicalSessionId from external clients"