Move failpoint support code to utils.

To enable them in safekeeper as well.
This commit is contained in:
Arseny Sher
2024-01-01 22:33:27 +03:00
committed by Arseny Sher
parent 90ef48aab8
commit dbd36e40dc
10 changed files with 74 additions and 57 deletions

View File

@@ -557,19 +557,6 @@ pub enum DownloadRemoteLayersTaskState {
ShutDown,
}
pub type ConfigureFailpointsRequest = Vec<FailpointConfig>;
/// Information for configuring a single fail point
#[derive(Debug, Serialize, Deserialize)]
pub struct FailpointConfig {
/// Name of the fail point
pub name: String,
/// List of actions to take, using the format described in `fail::cfg`
///
/// We also support `actions = "exit"` to cause the fail point to immediately exit.
pub actions: String,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct TimelineGcRequest {
pub gc_horizon: Option<u64>,