ExStorageService.Operations.Repair (ex_storage_service v0.6.4)

Copy Markdown View Source

Bounded repair planning and durable repair-run operations.

plan_page/5 is strictly read-only. run_page/5 delegates to the repair planner so work enters the durable outbox/job path used by background repair.

Summary

Functions

plan_page(context, shard, cursor \\ nil, limit \\ 100, opts \\ [])

@spec plan_page(
  ExStorageService.Context.t(),
  binary(),
  binary() | nil,
  pos_integer(),
  keyword()
) ::
  {:ok, map()} | {:error, term()}

run_page(context, shard, cursor \\ nil, limit \\ 100, opts \\ [])

@spec run_page(
  ExStorageService.Context.t(),
  binary(),
  binary() | nil,
  pos_integer(),
  keyword()
) ::
  {:ok, map()} | {:error, term()}