Added verification step to POST /_miroir/replica_groups/{id}/activate:
- Compares document counts between source and new group via stats endpoint
- Allows up to 0.1% variance (accounts for writes during sync)
- Returns 412 Precondition Failed if variance exceeds threshold
Also fixed TaskStore module exports (error, schema) and added RedisPool
struct for CDC integration.
Note: TaskStore trait implementations (redis.rs, sqlite.rs) have method
name/type mismatches with the trait definition (134 methods). This blocks
full compilation - tracked in plan-gap bead. P4.4 group addition tests use
mock clients and don't depend on TaskStore, so core functionality is intact.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| miroir-core | ||
| miroir-ctl | ||
| miroir-proxy | ||