diff options
author | James Wahlin <james@mongodb.com> | 2018-03-27 11:20:13 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-04-16 14:33:12 -0400 |
commit | 9652d252a2932fc0096704fccb1152b6b290fe6f (patch) | |
tree | b5a6b0f0f23ef1c1e9c9924c37e8d1d5eedc39e1 /src/mongo/db/kill_sessions_local.h | |
parent | c02574298a711b6de8a3d89cedcfe98040a6f55b (diff) | |
download | mongo-9652d252a2932fc0096704fccb1152b6b290fe6f.tar.gz |
SERVER-33690 Transaction abort and commit should kill any associated client cursors
Diffstat (limited to 'src/mongo/db/kill_sessions_local.h')
-rw-r--r-- | src/mongo/db/kill_sessions_local.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/kill_sessions_local.h b/src/mongo/db/kill_sessions_local.h index a21bcec4ae5..2022a0fda05 100644 --- a/src/mongo/db/kill_sessions_local.h +++ b/src/mongo/db/kill_sessions_local.h @@ -46,7 +46,14 @@ 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, + bool shouldKillClientCursors = true); + +/** + * Kills all transactions cursors on mongod for sessions matching 'matcher'. + */ +void killSessionsLocalKillTransactionCursors(OperationContext* opCtx, + const SessionKiller::Matcher& matcher); /** * Aborts any expired transactions. |