summaryrefslogtreecommitdiff
path: root/src/mongo/db/session_catalog.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2017-07-31 14:50:10 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2017-08-03 15:51:22 -0400
commit045ae4aa7e54ccfdc229a22f94fdead015ece8e6 (patch)
tree5e88d03cf5dbb59d4f336d8269c1f88edb2e900f /src/mongo/db/session_catalog.h
parentf5d9a6cbf83d18efa11150a24e1140ec2bb96d30 (diff)
downloadmongo-045ae4aa7e54ccfdc229a22f94fdead015ece8e6.tar.gz
SERVER-30281 Force sessions to reload after rollback
Diffstat (limited to 'src/mongo/db/session_catalog.h')
-rw-r--r--src/mongo/db/session_catalog.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/session_catalog.h b/src/mongo/db/session_catalog.h
index a504d24bf6c..b7acee9b5fe 100644
--- a/src/mongo/db/session_catalog.h
+++ b/src/mongo/db/session_catalog.h
@@ -93,9 +93,10 @@ public:
ScopedSession checkOutSession(OperationContext* opCtx);
/**
- * Clears the entire transaction table. Invoked after rollback.
+ * Resets all created sessions and increments their generation, forcing each to be reloaded by
+ * subsequent write commands. Invoked after rollback.
*/
- void clearTransactionTable();
+ void resetSessions();
private:
struct SessionRuntimeInfo {