From 2ba02bbcff076224e03eaa8414fe388853977a85 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 21 Oct 2026 04:08:26 +0200 Subject: turn compaction into a kind of remake --- src/remake/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/remake/mod.rs') diff --git a/src/remake/mod.rs b/src/remake/mod.rs index 974acde..9030099 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/`. //! * `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() -> Router { .delete(api::abort_current::), ) // The original endpoint, kept as a shortcut for a compacting remake. - .route("/admin/compaction", post(api::start::)) + .route("/admin/compaction", post(api::start_compaction::)) .route( "/admin/remakes/{id}", get(api::get::).delete(api::abort::), -- cgit v1.3.1