-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Dev Tools 2018-12-31
We use ServerStatusSection to populate the server status throughout the codebase, but it has come to our attention that we are doing it incorrectly. Instead of
virtual bool includeByDefault() const and virtual BSONObj generateSection(OperationContext* opCtx, const BSONElement& configElement) const
it should be:
bool includeByDefault() const override and BSONObj generateSection(OperationContext* opCtx, const BSONElement& configElement) const override
So just git grep "ServerStatusSections" to find the relevant areas and change them to avoid future bugs.