diff options
author | James Wahlin <james@mongodb.com> | 2018-02-13 15:54:53 -0500 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-02-16 16:52:04 -0500 |
commit | fa4dd67345feba2a7d6a84e589e3ffd3fca75b2a (patch) | |
tree | 2c8e15233d9f37dd9cdbf15e52e21f1a8bdb2a7c /src/mongo/db/commands/find_cmd.cpp | |
parent | 7aaacb4e7ce9ca7f3883679283ea095ea8d363eb (diff) | |
download | mongo-fa4dd67345feba2a7d6a84e589e3ffd3fca75b2a.tar.gz |
SERVER-33223 Add transaction resource stash
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/find_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp index 34f7b733411..451171fc348 100644 --- a/src/mongo/db/commands/find_cmd.cpp +++ b/src/mongo/db/commands/find_cmd.cpp @@ -409,6 +409,8 @@ public: } pinnedCursor.getCursor()->setPos(numResults); + opCtx->setStashedCursor(); + // Fill out curop based on the results. endQueryOp(opCtx, collection, *cursorExec, numResults, cursorId); } else { |