summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.cpp
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2020-03-12 15:52:20 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-24 21:19:20 +0000
commite21e03697dae0dbb6cd63ddada41ca4801d6bb79 (patch)
tree7058ce5201646330ccae160dd9ff591d9dc59377 /src/mongo/db/clientcursor.cpp
parente832bf1cfbdf1820427387307752038ee84ee2c1 (diff)
downloadmongo-e21e03697dae0dbb6cd63ddada41ca4801d6bb79.tar.gz
SERVER-46767 Provide a mapping from OperationKey to CursorID in the CursorManager
Diffstat (limited to 'src/mongo/db/clientcursor.cpp')
-rw-r--r--src/mongo/db/clientcursor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/clientcursor.cpp b/src/mongo/db/clientcursor.cpp
index 7bee0fb09f9..9834c386577 100644
--- a/src/mongo/db/clientcursor.cpp
+++ b/src/mongo/db/clientcursor.cpp
@@ -98,7 +98,8 @@ ClientCursor::ClientCursor(ClientCursorParams params,
_operationUsingCursor(operationUsingCursor),
_lastUseDate(now),
_createdDate(now),
- _planSummary(Explain::getPlanSummary(_exec.get())) {
+ _planSummary(Explain::getPlanSummary(_exec.get())),
+ _opKey(operationUsingCursor->getOperationKey()) {
invariant(_exec);
invariant(_operationUsingCursor);