[SERVER-30294] Only define stubs in community build, do nothing for enterprise Created: 25/Jul/17  Updated: 30/Oct/23  Resolved: 25/Jul/17

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: 3.5.11

Type: Improvement Priority: Minor - P4
Reporter: Sara Golemon Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-07-31
Participants:

 Description   

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()



 Comments   
Comment by Githook User [ 25/Jul/17 ]

Author:

{'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon', 'name': 'Sara Golemon'}

Message: SERVER-30294 Only define stubs in community build, do nothing for enterprise
Branch: master
https://github.com/mongodb/mongo/commit/6bc5c57e45cd6aa211fec404692c472b18be31d6

Generated at Thu Feb 08 04:23:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.