summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/killcursors_cmd.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2018-03-08 17:53:51 -0500
committerTess Avitabile <tess.avitabile@mongodb.com>2018-03-14 14:18:23 -0400
commit5436b257da849bfe91934d904b5fcf27ccfdd366 (patch)
treeee6b2dde2a1ae04f4a9afd23add01f0fe59ce054 /src/mongo/db/commands/killcursors_cmd.cpp
parentb5b4975daf0a327cc2ee2756b6771ca4c9fabfed (diff)
downloadmongo-5436b257da849bfe91934d904b5fcf27ccfdd366.tar.gz
SERVER-33672 Make killSessionsLocal() kill any matching Sessions
Diffstat (limited to 'src/mongo/db/commands/killcursors_cmd.cpp')
-rw-r--r--src/mongo/db/commands/killcursors_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/killcursors_cmd.cpp b/src/mongo/db/commands/killcursors_cmd.cpp
index b883d2e2a05..453c703dfa4 100644
--- a/src/mongo/db/commands/killcursors_cmd.cpp
+++ b/src/mongo/db/commands/killcursors_cmd.cpp
@@ -89,7 +89,7 @@ private:
if (txnToAbort) {
auto session = SessionCatalog::get(opCtx)->getSession(opCtx, txnToAbort->first);
if (session) {
- (*session)->abortIfSnapshotRead(opCtx, txnToAbort->second);
+ (*session)->abortIfSnapshotRead(txnToAbort->second);
}
}