diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2022-05-05 21:27:32 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-06 00:08:12 +0000 |
commit | 330458e81f9baa3f936d639dc3edbe1a8c4c5a32 (patch) | |
tree | 276be3a42c0a9aaff01340157a6fddd80509d831 /src/mongo/db/geo | |
parent | 6bf7fbe9eefff52f49b0f7898c86d7bec4d5985a (diff) | |
download | mongo-330458e81f9baa3f936d639dc3edbe1a8c4c5a32.tar.gz |
SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includes
Diffstat (limited to 'src/mongo/db/geo')
-rw-r--r-- | src/mongo/db/geo/geometry_container.cpp | 4 | ||||
-rw-r--r-- | src/mongo/db/geo/geoparser.cpp | 4 | ||||
-rw-r--r-- | src/mongo/db/geo/r2_region_coverer.cpp | 4 | ||||
-rw-r--r-- | src/mongo/db/geo/r2_region_coverer_test.cpp | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/src/mongo/db/geo/geometry_container.cpp b/src/mongo/db/geo/geometry_container.cpp index c3c3adaa1b2..e34ad35c9a2 100644 --- a/src/mongo/db/geo/geometry_container.cpp +++ b/src/mongo/db/geo/geometry_container.cpp @@ -27,7 +27,6 @@ * it in the license file. */ -#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kQuery #include "mongo/db/geo/geometry_container.h" @@ -37,6 +36,9 @@ #include "mongo/util/str.h" #include "mongo/util/transitional_tools_do_not_use/vector_spooling.h" +#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kQuery + + namespace mongo { bool GeometryContainer::isSimpleContainer() const { diff --git a/src/mongo/db/geo/geoparser.cpp b/src/mongo/db/geo/geoparser.cpp index 005f6defef2..57e2fbee611 100644 --- a/src/mongo/db/geo/geoparser.cpp +++ b/src/mongo/db/geo/geoparser.cpp @@ -27,7 +27,6 @@ * it in the license file. */ -#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kGeo #include "mongo/db/geo/geoparser.h" @@ -43,6 +42,9 @@ #include "mongo/util/transitional_tools_do_not_use/vector_spooling.h" #include "third_party/s2/s2polygonbuilder.h" +#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kGeo + + #define BAD_VALUE(error) Status(ErrorCodes::BadValue, str::stream() << error) namespace mongo { diff --git a/src/mongo/db/geo/r2_region_coverer.cpp b/src/mongo/db/geo/r2_region_coverer.cpp index 155546266b2..9a0364495e0 100644 --- a/src/mongo/db/geo/r2_region_coverer.cpp +++ b/src/mongo/db/geo/r2_region_coverer.cpp @@ -27,7 +27,6 @@ * it in the license file. */ -#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kQuery #include <algorithm> @@ -37,6 +36,9 @@ #include "mongo/db/geo/shapes.h" #include "mongo/logv2/log.h" +#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kQuery + + namespace mongo { using std::less; diff --git a/src/mongo/db/geo/r2_region_coverer_test.cpp b/src/mongo/db/geo/r2_region_coverer_test.cpp index 0a499f2a74a..4287a3fbc5e 100644 --- a/src/mongo/db/geo/r2_region_coverer_test.cpp +++ b/src/mongo/db/geo/r2_region_coverer_test.cpp @@ -27,7 +27,6 @@ * it in the license file. */ -#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest #include <chrono> #include <memory> @@ -42,6 +41,9 @@ #include "mongo/platform/random.h" #include "mongo/unittest/unittest.h" +#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest + + namespace { using namespace mongo; |