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 | c9559af92ba2e3d27188d0a8efd1861180613840 (patch) | |
| tree | ccbe7d41607cebff29002b9080d448549b100a38 /src/remake/mod.rs | |
| parent | 812eb0b3b714a16584c058de4b6a1de84a8e8dd7 (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 8cca57c..18191b0 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; @@ -136,7 +139,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>), |
