summaryrefslogtreecommitdiff
path: root/src/mongo/db/session_catalog.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-09-20 11:02:50 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-09-20 11:02:50 -0400
commitb5f2acfe24d1a6363dbcfb558b5baf00684f70e8 (patch)
tree101505207f2c3adca82750720c7730bb540eeff8 /src/mongo/db/session_catalog.h
parentc8cb9cc374af47f862d81e52ad4bc33d96239ef0 (diff)
downloadmongo-b5f2acfe24d1a6363dbcfb558b5baf00684f70e8.tar.gz
Revert "SERVER-31114 Perform targeted session invalidation on direct writes to `config.transactions`"
This reverts commit c8cb9cc374af47f862d81e52ad4bc33d96239ef0.
Diffstat (limited to 'src/mongo/db/session_catalog.h')
-rw-r--r--src/mongo/db/session_catalog.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/mongo/db/session_catalog.h b/src/mongo/db/session_catalog.h
index e0432c439f5..3e03c97d83d 100644
--- a/src/mongo/db/session_catalog.h
+++ b/src/mongo/db/session_catalog.h
@@ -112,16 +112,10 @@ public:
ScopedSession getOrCreateSession(OperationContext* opCtx, const LogicalSessionId& lsid);
/**
- * Callback to be invoked when it is suspected that the on-disk session contents might not be in
- * sync with what is in the sessions cache.
- *
- * If no specific document is available, the method will invalidate all sessions. Otherwise if
- * one is avaiable (which is the case for insert/update/delete), it must contain _id field with
- * a valid session entry, in which case only that particular session will be invalidated. If the
- * _id field is missing or doesn't contain a valid serialization of logical session, the method
- * will throw. This prevents invalid entries from making it in the collection.
+ * Resets all created sessions and increments their generation, forcing each to be reloaded by
+ * subsequent write commands. Invoked after rollback.
*/
- void invalidateSessions(OperationContext* opCtx, boost::optional<BSONObj> singleSessionDoc);
+ void resetSessions();
private:
struct SessionRuntimeInfo {