diff options
author | David Storch <david.storch@10gen.com> | 2014-07-29 13:58:50 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2014-07-29 17:16:37 -0400 |
commit | 1488bc89c42c6a39c5fdbd2b0c2b15e3abbb4108 (patch) | |
tree | a770bc9c7b17fdeb26b66115bb98cf7ca99372a0 /src/mongo/db/exec/near.cpp | |
parent | 81676bfa36c68b1247f0e08b666e33c3e3875755 (diff) | |
download | mongo-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/near.cpp')
-rw-r--r-- | src/mongo/db/exec/near.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/exec/near.cpp b/src/mongo/db/exec/near.cpp index 32cfa6e7464..2eed9662b46 100644 --- a/src/mongo/db/exec/near.cpp +++ b/src/mongo/db/exec/near.cpp @@ -281,17 +281,17 @@ namespace mongo { return SearchState_Finished == _searchState; } - void NearStage::prepareToYield() { + void NearStage::saveState() { ++_stats->common.yields; if (_nextInterval) { - _nextInterval->covering->prepareToYield(); + _nextInterval->covering->saveState(); } } - void NearStage::recoverFromYield(OperationContext* opCtx) { + void NearStage::restoreState(OperationContext* opCtx) { ++_stats->common.unyields; if (_nextInterval) { - _nextInterval->covering->recoverFromYield(opCtx); + _nextInterval->covering->restoreState(opCtx); } } |