Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-66202

MONGO_LOGV2_DEFAULT_COMPONENT conventions lint check

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • 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).

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: