diff options
| author | tv <tv@krebsco.de> | 2026-12-01 02:45:46 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 02:45:46 +0100 |
| commit | 34bfcb661ed74bf40809576bbb388362cb7ffaa1 (patch) | |
| tree | 8422db7db396dd4ae83403837cd954a94f882a7a /src/remake/api.rs | |
| parent | 34434f7fd5a6bab1884a63c96679f48045f4bffd (diff) | |
| parent | 6a06bc4a955cdf2b5a183c9ff21e25c79a4e5d9f (diff) | |
Diffstat (limited to 'src/remake/api.rs')
| -rw-r--r-- | src/remake/api.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/remake/api.rs b/src/remake/api.rs index 9ccd582..7590c2e 100644 --- a/src/remake/api.rs +++ b/src/remake/api.rs @@ -386,6 +386,16 @@ async fn start_kind<H: Host>( None, ); }; + // A set of events has nothing to remake (`docs/document.md`, A set of events): no + // changes, writers or epochs, and it is bounded by the store's checkpoints. + #[cfg(feature = "federation")] + if host.holding().of_a_set() { + return error_response( + StatusCode::BAD_REQUEST, + "this node's document is a set of events: there is nothing to remake".to_owned(), + None, + ); + } // A swarm holding a store takes compactions only (`docs/store.md`, Remakes): every // node builds a compaction's snapshot itself from the base. #[cfg(feature = "federation")] |
