diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2019-12-04 01:12:03 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-04 01:12:03 +0000 |
commit | 89c93866980e924c7ae91ca30b5bd3674727fe4f (patch) | |
tree | 2cb953fba031ecb363d0fab7e177e508c292540a /src/mongo/db | |
parent | d3b08f2dc93636a04f92d5448fdacfd447704607 (diff) | |
download | mongo-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')
-rw-r--r-- | src/mongo/db/cursor_manager.cpp | 1 |
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)); |