diff options
author | Ivan Fefer <ivan.fefer@mongodb.com> | 2023-01-25 09:43:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-25 12:41:30 +0000 |
commit | 2c00b8f4f31c7ced3e7e26bb9e2a014660169043 (patch) | |
tree | 5e43dc1813eb493ec5e2c3c627ec977f9611fa20 | |
parent | 4fedf80d4847e2f668ed5db555bf8e6551bf95d2 (diff) | |
download | mongo-2c00b8f4f31c7ced3e7e26bb9e2a014660169043.tar.gz |
SERVER-73235 Replace invariant with tassert when checking if geometry contains a big polygon
-rw-r--r-- | src/mongo/db/geo/geometry_container.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/geo/geometry_container.cpp b/src/mongo/db/geo/geometry_container.cpp index c3c3adaa1b2..be09ea54dc7 100644 --- a/src/mongo/db/geo/geometry_container.cpp +++ b/src/mongo/db/geo/geometry_container.cpp @@ -317,7 +317,9 @@ bool GeometryContainer::contains(const GeometryContainer& otherContainer) const } if (nullptr != otherContainer._polygon) { - invariant(nullptr != otherContainer._polygon->s2Polygon); + tassert(7323500, + "Checking if geometry contains big polygon is not supported", + nullptr != otherContainer._polygon->s2Polygon); return contains(*otherContainer._polygon->s2Polygon); } |