summaryrefslogtreecommitdiff
path: root/src/mongo/db/cursor_manager.cpp
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2019-12-04 01:12:03 +0000
committerevergreen <evergreen@mongodb.com>2019-12-04 01:12:03 +0000
commit89c93866980e924c7ae91ca30b5bd3674727fe4f (patch)
tree2cb953fba031ecb363d0fab7e177e508c292540a /src/mongo/db/cursor_manager.cpp
parentd3b08f2dc93636a04f92d5448fdacfd447704607 (diff)
downloadmongo-89c93866980e924c7ae91ca30b5bd3674727fe4f.tar.gz
SERVER-43246 Add a log line for when a cursor is reaped due to logical session cleanup
Diffstat (limited to 'src/mongo/db/cursor_manager.cpp')
-rw-r--r--src/mongo/db/cursor_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/cursor_manager.cpp b/src/mongo/db/cursor_manager.cpp
index b1ea5fd20ba..93dd9cad7f7 100644
--- a/src/mongo/db/cursor_manager.cpp
+++ b/src/mongo/db/cursor_manager.cpp
@@ -90,6 +90,7 @@ std::pair<Status, int> CursorManager::killCursorsWithMatchingSessions(
OperationContext* opCtx, const SessionKiller::Matcher& matcher) {
auto eraser = [&](CursorManager& mgr, CursorId id) {
uassertStatusOK(mgr.killCursor(opCtx, id, true));
+ log() << "killing cursor: " << id << " as part of killing session(s)";
};
auto bySessionCursorKiller = makeKillCursorsBySessionAdaptor(opCtx, matcher, std::move(eraser));