summaryrefslogtreecommitdiff
path: root/src/mongo/db/index/haystack_access_method_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index/haystack_access_method_internal.h')
-rw-r--r--src/mongo/db/index/haystack_access_method_internal.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/index/haystack_access_method_internal.h b/src/mongo/db/index/haystack_access_method_internal.h
index 4bc2e7430ad..b1d26b716ee 100644
--- a/src/mongo/db/index/haystack_access_method_internal.h
+++ b/src/mongo/db/index/haystack_access_method_internal.h
@@ -48,13 +48,13 @@ public:
* @param limit The maximum number of results to return
* @param geoField Which field in the provided RecordId has the point to test.
*/
- GeoHaystackSearchHopper(OperationContext* txn,
+ GeoHaystackSearchHopper(OperationContext* opCtx,
const BSONObj& nearObj,
double maxDistance,
unsigned limit,
const std::string& geoField,
const Collection* collection)
- : _txn(txn),
+ : _opCtx(opCtx),
_collection(collection),
_near(nearObj),
_maxDistance(maxDistance),
@@ -66,7 +66,7 @@ public:
void consider(const RecordId& loc) {
if (limitReached())
return;
- Point p(dps::extractElementAtPath(_collection->docFor(_txn, loc).value(), _geoField));
+ Point p(dps::extractElementAtPath(_collection->docFor(_opCtx, loc).value(), _geoField));
if (distance(_near, p) > _maxDistance)
return;
_locs.push_back(loc);
@@ -74,7 +74,7 @@ public:
int appendResultsTo(BSONArrayBuilder* b) {
for (unsigned i = 0; i < _locs.size(); i++)
- b->append(_collection->docFor(_txn, _locs[i]).value());
+ b->append(_collection->docFor(_opCtx, _locs[i]).value());
return _locs.size();
}
@@ -84,7 +84,7 @@ public:
}
private:
- OperationContext* _txn;
+ OperationContext* _opCtx;
const Collection* _collection;
Point _near;