pageserver: add remote storarge scan API

This commit is contained in:
John Spray
2024-04-17 20:38:23 +01:00
parent aba81434ce
commit 695e5b9fce
7 changed files with 129 additions and 15 deletions

View File

@@ -780,6 +780,17 @@ pub struct SecondaryProgress {
pub bytes_total: u64,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct TenantScanRemoteStorageShard {
pub tenant_shard_id: TenantShardId,
pub generation: Option<u32>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct TenantScanRemoteStorageResponse {
pub shards: Vec<TenantScanRemoteStorageShard>,
}
pub mod virtual_file {
#[derive(
Copy,