summaryrefslogtreecommitdiff
path: root/src/mongo/db/kill_sessions_local.h
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2018-03-15 16:16:58 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2018-03-20 10:25:27 -0400
commit374f14d984da357c943098735e7e6d13f250675a (patch)
tree91662f7eb9a6d9582dff0a7e312fffbc9a85398f /src/mongo/db/kill_sessions_local.h
parent15400ae3c7ec6830e0f80b3dd84fd89632b73648 (diff)
downloadmongo-374f14d984da357c943098735e7e6d13f250675a.tar.gz
SERVER-33669 Stepdown and shutdown should abort all uncommitted transactions
Diffstat (limited to 'src/mongo/db/kill_sessions_local.h')
-rw-r--r--src/mongo/db/kill_sessions_local.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/kill_sessions_local.h b/src/mongo/db/kill_sessions_local.h
index 7177fad6b0d..c9d813f4915 100644
--- a/src/mongo/db/kill_sessions_local.h
+++ b/src/mongo/db/kill_sessions_local.h
@@ -39,4 +39,10 @@ SessionKiller::Result killSessionsLocal(OperationContext* opCtx,
const SessionKiller::Matcher& matcher,
SessionKiller::UniformRandomBitGenerator* urbg);
+/**
+ * Kills all transactions on mongod for sessions matching 'matcher'.
+ */
+void killSessionsLocalKillTransactions(OperationContext* opCtx,
+ const SessionKiller::Matcher& matcher);
+
} // namespace mongo