Remove ilm.rs's duplicate NodeIndexStats/NodeStatsDetail/IndexStats structs and fetch_index_stats/fetch_node_stats methods. Repoint the two ILM callers — evaluate_policy_triggers rollover evaluation and clean_retention's pre-delete doc count — at crate::index_stats::aggregate_index_stats. The shared IndexStats does not carry created_at_ms, so preserve ILM's prior placeholder behavior at the call site: default to 1 day ago when any node responded (nodes_responded > 0), else 0. Rollover max_docs (max-reduction) and size (sum) evaluation behavior is unchanged. Reshard untouched. Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| miroir-core | ||
| miroir-ctl | ||
| miroir-proxy | ||