diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2019-10-21 18:00:43 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-21 18:00:43 +0000 |
commit | 84ac90293a3147f3b27240a7ab12de347f45a6a7 (patch) | |
tree | e354c6afb834584a82d0586c1ee467c3a11f80e2 /src/mongo/s | |
parent | f0e88542ab2ba937c25372d02bef3014cda6779f (diff) | |
download | mongo-84ac90293a3147f3b27240a7ab12de347f45a6a7.tar.gz |
SERVER-28604 Log when a cursor is reaped for timeout
(cherry picked from commit 480af6017647716bd2d087c6d772ef44db47c4cc)
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/query/cluster_cursor_manager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/s/query/cluster_cursor_manager.cpp b/src/mongo/s/query/cluster_cursor_manager.cpp index 079582cfb47..246be0957a0 100644 --- a/src/mongo/s/query/cluster_cursor_manager.cpp +++ b/src/mongo/s/query/cluster_cursor_manager.cpp @@ -403,6 +403,8 @@ void ClusterCursorManager::killAllCursors() { for (auto& nsContainerPair : _namespaceToContainerMap) { for (auto& cursorIdEntryPair : nsContainerPair.second.entryMap) { cursorIdEntryPair.second.setKillPending(); + log() << "Cursor id " << cursorIdEntryPair.first << " timed out, idle since " + << cursorIdEntryPair.second.getLastActive().toString(); } } } |