summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec
diff options
context:
space:
mode:
authorEric Cox <eric.cox@mongodb.com>2019-12-13 19:52:42 +0000
committerevergreen <evergreen@mongodb.com>2019-12-13 19:52:42 +0000
commit1af1d190cb53ea5b7624904dceed7a6a24804b3e (patch)
tree2ad925a6cc8750c1be4c85e0bbab0ea4d4581ffa /src/mongo/db/exec
parent0649034e411fc20d26efce791af276e727db62d5 (diff)
downloadmongo-1af1d190cb53ea5b7624904dceed7a6a24804b3e.tar.gz
SERVER-40358 Add assertion helpers like 'StatusOKWithContext' to all macros
Diffstat (limited to 'src/mongo/db/exec')
-rw-r--r--src/mongo/db/exec/geo_near.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/exec/geo_near.cpp b/src/mongo/db/exec/geo_near.cpp
index 827439b5a6a..204b840f24e 100644
--- a/src/mongo/db/exec/geo_near.cpp
+++ b/src/mongo/db/exec/geo_near.cpp
@@ -245,7 +245,7 @@ static R2Annulus twoDDistanceBounds(const GeoNearParams& nearParams,
// Reset the full bounds based on our index bounds
GeoHashConverter::Parameters hashParams;
Status status = GeoHashConverter::parseParameters(twoDIndex->infoObj(), &hashParams);
- invariant(status.isOK()); // The index status should always be valid
+ invariantStatusOK(status); // The index status should always be valid
// The biggest distance possible in this indexed collection is the diagonal of the
// square indexed region.
@@ -272,7 +272,7 @@ GeoNear2DStage::DensityEstimator::DensityEstimator(PlanStage::Children* children
GeoHashConverter::Parameters hashParams;
Status status = GeoHashConverter::parseParameters(std::move(infoObj), &hashParams);
// The index status should always be valid.
- invariant(status.isOK());
+ invariantStatusOK(status);
_converter.reset(new GeoHashConverter(hashParams));
_centroidCell = _converter->hash(_nearParams->nearQuery->centroid->oldPoint);
@@ -538,7 +538,7 @@ static double min2DBoundsIncrement(const GeoNearExpression& query,
const IndexDescriptor* twoDIndex) {
GeoHashConverter::Parameters hashParams;
Status status = GeoHashConverter::parseParameters(twoDIndex->infoObj(), &hashParams);
- invariant(status.isOK()); // The index status should always be valid
+ invariantStatusOK(status); // The index status should always be valid
GeoHashConverter hasher(hashParams);
// The hasher error is the diagonal of a 2D hash region - it's generally not helpful