|
Currently the BalancerStatsRegistry can only be used on FCV in which the OrphanTracking feature flag is enabled (>= 6.0).
For this reason the initialization/termination logic of the registry is a bit convoluted.
Once the OrphanTracking feature flag is removed ( SERVER-65815) we should simplify the logic by assuming that the registry is only initialized on stepUp and terminated on stepDown.
This means that we can stop exposing BalancerStatsRegistry::initializeAsync and BalancerStatsRegistry::terminate functions
|