diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2017-07-31 14:50:10 -0400 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2017-08-03 15:51:22 -0400 |
commit | 045ae4aa7e54ccfdc229a22f94fdead015ece8e6 (patch) | |
tree | 5e88d03cf5dbb59d4f336d8269c1f88edb2e900f /src/mongo/db/session_catalog.h | |
parent | f5d9a6cbf83d18efa11150a24e1140ec2bb96d30 (diff) | |
download | mongo-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.h | 5 |
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 { |