summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-42508 Get rid of some additional unused code in SessionsCollectionKaloian Manassiev2019-10-311-18/+16
| | | | ... and also improve comments.
* SERVER-42508 Convert SessionsCollection to throw instead of return statusMarcos José Grillo Ramírez2019-10-301-19/+19
| | | | Change the remaining public functions: refreshSessions, removeRecords and findRemovedSessions
* SERVER-42508 Convert SessionsCollection to throw instead of return statusMarcos José Grillo Ramírez2019-10-291-1/+1
| | | | Change the return value of checkSessionsCollectionExists from Status to void and throws exception on error
* SERVER-42508 Convert SessionsCollection to throw instead of return status ↵Marcos José Grillo Ramírez2019-10-241-1/+1
| | | | Part One: setupSessionsCollection
* SERVER-39338 Remove `stdx/functional.h`ADAM David Alan Martin2019-06-101-3/+4
|
* SERVER-37837 Examine and reap sessions from the SessionsCatalogKaloian Manassiev2019-05-171-3/+2
| | | | | This change makes the logical sessions cache query and reap sessions, which are possibly only in-memory on the SessionsCatalog.
* SERVER-37837 Get rid of TransactionReaper (Part 1)Kaloian Manassiev2019-05-091-9/+12
| | | | | | | | | This change gets rid of the TransactionReaper's usage of the ReplicationCoordinator for checking whether it is primary or not and makes the LogicalSessionCache joinable on shutdown. It also removes the TransactionReaper's grouping per-shard optimization and moves it all under SessionCollectionSharded.
* SERVER-37837 Move `config.transactions` manipulation out of SessionsCollectionKaloian Manassiev2019-05-021-3/+0
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37624 Allow sessions collection TTL index expiration value to change ↵Blake Oler2018-11-021-0/+5
| | | | upon node restart
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-36964 Prevent secondaries in SessionsCollectionRS from attempting to ↵Blake Oler2018-10-131-0/+7
| | | | set up the sessions collection.
* SERVER-36332 write to primary from secondary in LogicalSessionsCache for ↵Misha Tyulenev2018-08-281-6/+0
| | | | ReplicaSet
* SERVER-32198 Move the sessions collection namespace constant to NamespaceStringKaloian Manassiev2018-05-241-2/+0
|
* SERVER-34773 Use kSessionsNamespaceString instead of its constituent ↵Kaloian Manassiev2018-05-021-6/+2
| | | | StringData entries
* SERVER-31184 Make servers automatically set up config.system.sessionssamantharitter2017-10-111-0/+10
|
* SERVER-31174 Move the sessions collection to config.system.sessionssamantharitter2017-09-251-2/+2
|
* Revert "SERVER-31174 Move the sessions collection to config.system.sessions"Ian Whalen2017-09-221-2/+2
| | | | This reverts commit ba1704f7cbc0b9a03a181df145f75f433a59b7df.
* SERVER-31174 Move the sessions collection to config.system.sessionssamantharitter2017-09-221-2/+2
|
* SERVER-28336 endSessions commandGabriel Russell2017-09-211-4/+1
|
* SERVER-31011 Provide transaction record deletion hookJason Carey2017-09-201-8/+23
|
* SERVER-30805 add LSC::findRemovedSessions()Jason Carey2017-08-311-0/+15
| | | | | Implements a findRemovedSessions method for the logical session collection and impls for the various backends.
* SERVER-29202 Remove unused fetch methods from logical session cachesamantharitter2017-08-181-7/+0
|
* SERVER-29202 Implement SessionsCollectionRSsamantharitter2017-08-181-1/+12
|
* SERVER-28335 Implement refreshSessions and refreshSessionsInternal commandssamantharitter2017-08-151-4/+1
|
* SERVER-29201 Implement SessionsCollectionStandalonesamantharitter2017-08-021-14/+32
|
* SERVER-30298 Add UserDigest LogicalSessionIDJason Carey2017-07-261-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inclusion of a sha256 digest of the full username to the logical session id (in addition to the current guid) is necessary to fully disambiguate logical sessions in degraded clusters (when the authoritative record for a session is unreachable). Semantics for the uid are as follows: session creation via startSession() * Sessions can only be created with one, and only one, user authenticated * The composite key is created from a guid created on the spot, as well as the digest of the currently auth'd username * Only the session guid is returned to the user * This prevents outside users from attempting to send back a value we'd have to check. It's preferable to decorate the guid with the user digest per command, rather than having to check a value the user might send. session use for a command * Sessions are passed via the lsid top level field in any command * Sessions are only meaningful for commands which requireAuth. For sessions which don't require auth, we strip session information from the command at parse time * Session ids are passed as an object, which can optionally include the username digest * It is illegal to pass the username digest unless the currently auth'd user has the impersonate privilege (the __system user does). This enables sessions on shard servers via mongos
* SERVER-29610 Allow LogicalSessionIds to contain signed user informationsamantharitter2017-07-131-2/+3
|
* SERVER-28346 Add more unit tests for the logical session cachesamantharitter2017-06-091-4/+3
|
* Revert "SERVER-28346 Add more unit tests for the logical session cache"James Wahlin2017-06-081-3/+4
| | | | This reverts commit 4c3337abe512a37c8e4cb22e16eafcd04bc5bd3a.
* SERVER-28346 Add more unit tests for the logical session cachesamantharitter2017-06-071-4/+3
|
* SERVER-28300 Add interfaces for logical session cache supporting typesSamantha Ritter2017-06-051-0/+80