Skip to content

housekeeping: Always log repository info in `OptimizeRepository`

Patrick Steinhardt requested to merge pks-housekeeping-use-stats into master

When optimizing repositories via housekeeping.OptimizeRepository, then we only log repository information when we actually repack objects. Furthermore, we derive the repository information twice in that case: once to inform the optimization strategy, and once to log the information when repacking objects.

This MR simplifies the way we derive information in the heuristical optimization strategy by just embeding a stats.RepositoryInfo structure directly. This allows us to easily always log the repository information and deduplicates deriving the information.

Merge request reports