diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2017-06-26 17:30:16 -0400 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2017-07-12 15:32:49 -0400 |
commit | 32ce928cb3275bb3de7c1e1ccc99d3c1e57cdc72 (patch) | |
tree | fdf47bdbf89faec183b05ab48b3a898923b94bf6 /src/mongo/db/repl/rollback_impl.h | |
parent | 4b9d69eb00361083ce835d42c4107a4caa52f6fc (diff) | |
download | mongo-32ce928cb3275bb3de7c1e1ccc99d3c1e57cdc72.tar.gz |
SERVER-29531 Handle rollbacks in SessionTransactionTable
Diffstat (limited to 'src/mongo/db/repl/rollback_impl.h')
-rw-r--r-- | src/mongo/db/repl/rollback_impl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/repl/rollback_impl.h b/src/mongo/db/repl/rollback_impl.h index cbddbca41e7..1142ad73f6a 100644 --- a/src/mongo/db/repl/rollback_impl.h +++ b/src/mongo/db/repl/rollback_impl.h @@ -193,6 +193,16 @@ private: void _checkShardIdentityRollback(OperationContext* opCtx); /** + * The in-memory session transaction table needs to be cleared after rollback, so it is forced + * to refetch from storage. + * + * 'opCtx' cannot be null. + * + * Called by _tearDown(). + */ + void _clearSessionTransactionTable(OperationContext* opCtx); + + /** * Transitions the current member state from ROLLBACK to SECONDARY. * This operation must succeed. Otherwise, we will shut down the server. * |