Replace the legacy `total_documents: 0` placeholder on the in-memory BackfillProgress in `start_backfill` with the real source-index document count via `compute_source_document_count` (the bf-2ynu5 helper that delegates to `crate::index_stats::aggregate_index_stats`). The progress ratio now has a non-zero denominator from the very first shard. A stats-query failure must never abort a reshard over a mere progress signal, so the call maps an error to `0` via `.unwrap_or(0)` — `advance_backfill`'s per-shard accumulation remains the legacy fallback that fills the denominator in incrementally. In-memory only: no change to the persisted ReshardOperation and no `upfront_total_known` reconciliation field in this child (those are children 2 and 3). Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| miroir-core | ||
| miroir-ctl | ||
| miroir-proxy | ||