summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/index_scan.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-02-13 17:14:16 -0500
committerDavid Storch <david.storch@10gen.com>2015-02-16 20:46:18 -0500
commit2a4111960fee25453ed0974ee9eae95ec25bd556 (patch)
treea97d137c3c92f228bcdef2068c1511be359c0415 /src/mongo/db/exec/index_scan.cpp
parent988703309558dca5a2a1a500d8e0c0dc8e8fc621 (diff)
downloadmongo-2a4111960fee25453ed0974ee9eae95ec25bd556.tar.gz
SERVER-17062 rename NEED_FETCH to NEED_YIELD
Diffstat (limited to 'src/mongo/db/exec/index_scan.cpp')
-rw-r--r--src/mongo/db/exec/index_scan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/exec/index_scan.cpp b/src/mongo/db/exec/index_scan.cpp
index c05d42ed7a7..7a302365c9f 100644
--- a/src/mongo/db/exec/index_scan.cpp
+++ b/src/mongo/db/exec/index_scan.cpp
@@ -200,7 +200,7 @@ namespace mongo {
_endCursor.reset();
_btreeCursor = NULL;
*out = WorkingSet::INVALID_ID;
- return PlanStage::NEED_FETCH;
+ return PlanStage::NEED_YIELD;
}
}
@@ -212,7 +212,7 @@ namespace mongo {
// checkEnd only fails in ways that is safe to call again after yielding.
_scanState = CHECKING_END;
*out = WorkingSet::INVALID_ID;
- return PlanStage::NEED_FETCH;
+ return PlanStage::NEED_YIELD;
}
}
@@ -246,7 +246,7 @@ namespace mongo {
// If next throws, it leaves us at the original position.
invariant(_indexCursor->getValue() == loc);
*out = WorkingSet::INVALID_ID;
- return PlanStage::NEED_FETCH;
+ return PlanStage::NEED_YIELD;
}
if (_shouldDedup) {