-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Service Arch 2022-05-16
Enforce that MONGO_LOGV2_DEFAULT_COMPONENT definitions are hermetic, and affect only the file in which the definition appears. If a file defines the macro, it must undefine it before handing control to another file.
1) Headers that define it must undefine it.
2) It must not have a definition when an include is performed. This usually means the definition must be below the customary `#include` blocks.
A sweep of the codebase described in SERVER-52604 is a prerequisite for (2).
- depends on
-
SERVER-66203 Sweep: move MONGO_LOGV2_DEFAULT_COMPONENT definition below includes
- Closed
- is related to
-
SERVER-71741 Move macro definition leaks check to clang-tidy
- Closed
- split from
-
SERVER-52604 Log from anywhere (normalize MONGO_LOGV2_DEFAULT_COMPONENT)
- Closed