Add an optional persisted-operation seam to ReshardExecutor so the admin status endpoint's ReshardOperation::backfill_progress() reads a real ratio instead of the 0.0 an unset denominator yields. - progress_operation: Option<Arc<RwLock<ReshardOperation>>> field (None on the default path) - with_progress_operation(op) builder to attach the persisted operation - report_progress(&state): when an operation is attached, mirrors the executor's BackfillProgress (processed_documents numerator, total_documents denominator) into it via ReshardOperation::update_backfill_progress; a no-op when None - call report_progress at the end of start_backfill (propagates the denominator seeded by bf-2tddo / reconciled by bf-1rodg) and at the end of advance_backfill (propagates the numerator as each shard completes) With no operation attached the default executor path is unchanged. Child 3 of 4 of bf-67ki8. Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| miroir-core | ||
| miroir-ctl | ||
| miroir-proxy | ||