trigger now only does insertions; app loop will do cleanup; prepare API for cleanup

This commit is contained in:
Christian Schwarz
2025-05-30 20:36:50 +02:00
parent 8eb853b731
commit afa35eea87
8 changed files with 122 additions and 96 deletions

View File

@@ -311,12 +311,14 @@ pub struct PullTimelineResponse {
// TODO: add more fields?
}
#[derive(Debug, Serialize, Deserialize)]
pub struct TenantShardPageserverAttachments {
pub attachments: Vec<TenantShardPageserverAttachment>,
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(tag = "action")]
pub enum TenantShardPageserverAttachmentChange {
Attach(TenantShardPageserverAttachment),
Detach(TenantShardPageserverAttachment),
}
#[derive(Debug, Serialize, Deserialize)]
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct TenantShardPageserverAttachment {
pub ps_id: NodeId,
pub generation: Generation,