summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/text.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2014-07-29 13:58:50 -0400
committerDavid Storch <david.storch@10gen.com>2014-07-29 17:16:37 -0400
commit1488bc89c42c6a39c5fdbd2b0c2b15e3abbb4108 (patch)
treea770bc9c7b17fdeb26b66115bb98cf7ca99372a0 /src/mongo/db/exec/text.cpp
parent81676bfa36c68b1247f0e08b666e33c3e3875755 (diff)
downloadmongo-1488bc89c42c6a39c5fdbd2b0c2b15e3abbb4108.tar.gz
SERVER-14633 rename prepareToYield() and recoverFromYield() to saveState() and restoreState()
Also renames PlanExecutor::getStages() to PlanExecutor::getRootStage()
Diffstat (limited to 'src/mongo/db/exec/text.cpp')
-rw-r--r--src/mongo/db/exec/text.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/exec/text.cpp b/src/mongo/db/exec/text.cpp
index 17fa93eff68..46800e96335 100644
--- a/src/mongo/db/exec/text.cpp
+++ b/src/mongo/db/exec/text.cpp
@@ -104,19 +104,19 @@ namespace mongo {
return stageState;
}
- void TextStage::prepareToYield() {
+ void TextStage::saveState() {
++_commonStats.yields;
for (size_t i = 0; i < _scanners.size(); ++i) {
- _scanners.mutableVector()[i]->prepareToYield();
+ _scanners.mutableVector()[i]->saveState();
}
}
- void TextStage::recoverFromYield(OperationContext* opCtx) {
+ void TextStage::restoreState(OperationContext* opCtx) {
++_commonStats.unyields;
for (size_t i = 0; i < _scanners.size(); ++i) {
- _scanners.mutableVector()[i]->recoverFromYield(opCtx);
+ _scanners.mutableVector()[i]->restoreState(opCtx);
}
}