mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-24 08:30:37 +00:00
WIP
This commit is contained in:
@@ -319,9 +319,18 @@ pub enum TenantShardPageserverAttachmentChange {
|
||||
Detach(TenantShardPageserverAttachment),
|
||||
}
|
||||
|
||||
impl TenantShardPageserverAttachmentChange {
|
||||
pub fn attachment(&self) -> TenantShardPageserverAttachment {
|
||||
match self {
|
||||
TenantShardPageserverAttachmentChange::Attach(a) => a,
|
||||
TenantShardPageserverAttachmentChange::Detach(a) => a,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct TenantShardPageserverAttachment {
|
||||
pub shard: ShardIndex,
|
||||
pub shard_id: ShardIndex,
|
||||
pub generation: Generation,
|
||||
pub ps_id: NodeId,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user