summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/parallel_collection_scan.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2016-04-14 09:58:12 -0400
committerAndy Schwerin <schwerin@mongodb.com>2016-05-23 10:27:00 -0400
commitc9aac9d6eaba6ef2eb8903f07e997b594e88addc (patch)
treeb8222b86f1de0a352048dd269f547fe31f4dc13c /src/mongo/db/commands/parallel_collection_scan.cpp
parentfb052c13742deab981c7ba729dad36e33bdd7393 (diff)
downloadmongo-c9aac9d6eaba6ef2eb8903f07e997b594e88addc.tar.gz
SERVER-18277 Track operation deadlines in OperationContext, not CurOp.
This also unifies the implementations of checkForInterrupt and checkForInterruptNoAssert.
Diffstat (limited to 'src/mongo/db/commands/parallel_collection_scan.cpp')
-rw-r--r--src/mongo/db/commands/parallel_collection_scan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/parallel_collection_scan.cpp b/src/mongo/db/commands/parallel_collection_scan.cpp
index bc280f4b937..425d5eb8791 100644
--- a/src/mongo/db/commands/parallel_collection_scan.cpp
+++ b/src/mongo/db/commands/parallel_collection_scan.cpp
@@ -149,7 +149,7 @@ public:
exec.release(),
ns.ns(),
txn->recoveryUnit()->isReadingFromMajorityCommittedSnapshot());
- cc->setLeftoverMaxTimeMicros(CurOp::get(txn)->getRemainingMaxTimeMicros());
+ cc->setLeftoverMaxTimeMicros(txn->getRemainingMaxTimeMicros());
BSONObjBuilder threadResult;
appendCursorResponseObject(cc->cursorid(), ns.ns(), BSONArray(), &threadResult);