diff options
author | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2018-07-03 14:23:27 -0400 |
---|---|---|
committer | Cheahuychou Mao <cheahuychou.mao@mongodb.com> | 2018-07-09 10:31:57 -0400 |
commit | ffbaee1a4dcb47a307986cb696807fe979f4a39d (patch) | |
tree | f42b803e6942b8bb7106597c3c80776c0aa2c0c6 /src/mongo/db/logical_session_cache.h | |
parent | ceae29c2fc64445dcf832d2f82c44c1920d91933 (diff) | |
download | mongo-ffbaee1a4dcb47a307986cb696807fe979f4a39d.tar.gz |
SERVER-33697 Provide sanity check on the number of cached sessions
Diffstat (limited to 'src/mongo/db/logical_session_cache.h')
-rw-r--r-- | src/mongo/db/logical_session_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/logical_session_cache.h b/src/mongo/db/logical_session_cache.h index ece611339ba..2827fd8cd98 100644 --- a/src/mongo/db/logical_session_cache.h +++ b/src/mongo/db/logical_session_cache.h @@ -69,7 +69,7 @@ public: * should only be used when starting new sessions and should not be used to * insert records for existing sessions. */ - virtual void startSession(OperationContext* opCtx, LogicalSessionRecord record) = 0; + virtual Status startSession(OperationContext* opCtx, LogicalSessionRecord record) = 0; /** * Refresh the given sessions. Updates the timestamps of these records in @@ -84,7 +84,7 @@ public: * Vivifies the session in the cache. I.e. creates it if it isn't there, updates last use if it * is. */ - virtual void vivify(OperationContext* opCtx, const LogicalSessionId& lsid) = 0; + virtual Status vivify(OperationContext* opCtx, const LogicalSessionId& lsid) = 0; /** * enqueues LogicalSessionIds for removal during the next _refresh() |