[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() |
| Comments |
| Comment by Githook User [ 25/Jul/17 ] |
|
Author: {'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon', 'name': 'Sara Golemon'}Message: |