diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-10-09 08:17:38 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2018-10-31 04:50:08 -0400 |
commit | 236c6c28a18210586673097ee436c5b613b6c46f (patch) | |
tree | 9c26586d5943845b8f3356cbbee41dc75533670d /src/mongo/db/kill_sessions_local.h | |
parent | e701da7ff3ec84b2bb3b353fa748c22f7b2a5878 (diff) | |
download | mongo-236c6c28a18210586673097ee436c5b613b6c46f.tar.gz |
SERVER-37244 Make sessions killable outside of the Session/TransactionParticipant object
Diffstat (limited to 'src/mongo/db/kill_sessions_local.h')
-rw-r--r-- | src/mongo/db/kill_sessions_local.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/kill_sessions_local.h b/src/mongo/db/kill_sessions_local.h index 3d6f0699cba..60cb150904a 100644 --- a/src/mongo/db/kill_sessions_local.h +++ b/src/mongo/db/kill_sessions_local.h @@ -48,7 +48,8 @@ SessionKiller::Result killSessionsLocal(OperationContext* opCtx, * Kills all transactions on mongod for sessions matching 'matcher'. */ void killSessionsLocalKillTransactions(OperationContext* opCtx, - const SessionKiller::Matcher& matcher); + const SessionKiller::Matcher& matcher, + ErrorCodes::Error reason = ErrorCodes::Interrupted); /** * Aborts any expired transactions. |