summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/near.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/near.cpp')
-rw-r--r--src/mongo/db/exec/near.cpp8
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);
}
}