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

Only define stubs in community build, do nothing for enterprise

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.5.11
    • Affects Version/s: None
    • Component/s: Logging
    • None
    • Fully Compatible
    • Platforms 2017-07-31

      We currently have the audit methods in up to three places (depending on build) with their prototypes existing twice (in audit.cpp and audit.h)

      Make audit.cpp a stub-only file (for non-enterprise builds) and define free functions out-of-namespace so that we catch mismatches more quickly. For example: The following two methods existed in audit.cpp only with no header declaration in audit.h nor an implementation in enterprise. We can now catch that properly.

      parseAndRemoveImpersonatedUsersField()
      parseAndRemoveImpersonatedRolesField()

            Assignee:
            sara.golemon@mongodb.com Sara Golemon
            Reporter:
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: