summaryrefslogtreecommitdiff
path: root/src/mongo/db/kill_sessions_local.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-02-27 13:42:04 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-03-06 23:18:41 -0500
commitf7492fe762273c1fa41d68275407ca08d1d6a970 (patch)
treee1ce3ee0f1ea3439937b3735d815bb498dfb1ccf /src/mongo/db/kill_sessions_local.h
parent2c69836243bf5887eb0ff28c0f5a8cb0ef816164 (diff)
downloadmongo-f7492fe762273c1fa41d68275407ca08d1d6a970.tar.gz
SERVER-38456 On shutdown, stepdown and FCV downgrade only kill sessions with multi-statement transactions
Diffstat (limited to 'src/mongo/db/kill_sessions_local.h')
-rw-r--r--src/mongo/db/kill_sessions_local.h3
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 6ca42984440..6b4da948e1c 100644
--- a/src/mongo/db/kill_sessions_local.h
+++ b/src/mongo/db/kill_sessions_local.h
@@ -44,7 +44,8 @@ SessionKiller::Result killSessionsLocal(OperationContext* opCtx,
SessionKiller::UniformRandomBitGenerator* urbg);
/**
- * Kills all transactions on mongod for sessions matching 'matcher'.
+ * Matches only sessions which have unprepared multi-statement transactions, kills the sessions and
+ * aborts the transactions.
*/
void killSessionsAbortUnpreparedTransactions(OperationContext* opCtx,
const SessionKiller::Matcher& matcher,