diff options
| author | tv <tv@krebsco.de> | 2026-10-21 04:08:26 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-21 04:08:26 +0200 |
| commit | cae74a1abc23aa0e72eca1b5668d9bba87ea4c1e (patch) | |
| tree | 0811bfdcf686874cf80dd8f9992ca37c3923b022 /src/remake/mod.rs | |
| parent | 5e710513e5dee0e1a715680da2c2953692dcb377 (diff) | |
turn compaction into a kind of remake
Diffstat (limited to 'src/remake/mod.rs')
| -rw-r--r-- | src/remake/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/remake/mod.rs b/src/remake/mod.rs index d971fcf..e31eadf 100644 --- a/src/remake/mod.rs +++ b/src/remake/mod.rs @@ -1,6 +1,8 @@ //! Remakes: coordinated moves of the whole cluster to a new document, a new epoch. //! Compaction is one: the new document has the old one's content without its history. //! +//! * `kind`: what differs between kinds of remake (building the new document, and +//! where writes made after the base go); compaction is the only kind so far. //! * `snapshot`: deterministic build of the next epoch's initial document. //! * `records`: the replicated remake records under `_continuum/remakes/<id>`. //! * `coordinator`: proposal, settle period and decision on the node that was asked. @@ -19,6 +21,7 @@ mod api; mod catchup; mod coordinator; mod delta; +mod kind; mod local; mod quarantine; mod records; @@ -128,7 +131,7 @@ pub(crate) fn router<H: Host>() -> Router<H> { .delete(api::abort_current::<H>), ) // The original endpoint, kept as a shortcut for a compacting remake. - .route("/admin/compaction", post(api::start::<H>)) + .route("/admin/compaction", post(api::start_compaction::<H>)) .route( "/admin/remakes/{id}", get(api::get::<H>).delete(api::abort::<H>), |
