diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2018-03-26 17:26:50 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2018-04-13 10:58:19 -0400 |
commit | 4f0c2f4047bdafe7a5d952a9671bf436a763c4d5 (patch) | |
tree | e202c0b4f8598f669df77efa1a44ee94a2ec0dc3 /src/mongo/db/kill_sessions_local.h | |
parent | 10bcc73a75ac857c290c3af6a3f89a45c4867043 (diff) | |
download | mongo-4f0c2f4047bdafe7a5d952a9671bf436a763c4d5.tar.gz |
SERVER-33295 Periodic task to check for and kill expired transactions.
(Adding a new int server parameter 'transactionLifetimeLimitSeconds'.)
Diffstat (limited to 'src/mongo/db/kill_sessions_local.h')
-rw-r--r-- | src/mongo/db/kill_sessions_local.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/kill_sessions_local.h b/src/mongo/db/kill_sessions_local.h index c9d813f4915..a21bcec4ae5 100644 --- a/src/mongo/db/kill_sessions_local.h +++ b/src/mongo/db/kill_sessions_local.h @@ -30,6 +30,9 @@ #include "mongo/db/session_killer.h" +/** + * Mongod local kill session / transaction functionality library. + */ namespace mongo { /** @@ -45,4 +48,9 @@ SessionKiller::Result killSessionsLocal(OperationContext* opCtx, void killSessionsLocalKillTransactions(OperationContext* opCtx, const SessionKiller::Matcher& matcher); +/** + * Aborts any expired transactions. + */ +void killAllExpiredTransactions(OperationContext* opCtx); + } // namespace mongo |