SERVER-137525In Code Review

Refactor sampling estimator logic into a samples PersistentStatsManager

Extract the persistent-sample read/write logic from {{sampling_estimator_impl.cpp}} into a samples {{PersistentStatsManager}} reusable by the query planner, the analyze command and PSAME. The manager implements the PersistentStatsManager API: * {{load(StatSpec) -> Optional<Stat>}} * {{refresh(StatSpec) -> Status}} * {{delete(StatSpec) -> Status}} * {{findForColl(UUID) -> Vector<StatSpec>}} * {{collsWithStats() -> Vector<UUID>}} See WRITING-11150, PersistentStatsManagers.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
P1-M3psame