wip persistence

This commit is contained in:
John Spray
2024-01-07 20:13:27 +00:00
parent bbdd27a522
commit 53c87cdb92

View File

@@ -0,0 +1,13 @@
/// The attachment service does not store most of its state durably.
///
/// The essential things to store durably are:
/// - generation numbers, as these must always advance monotonically to ensure data safety.
/// - PlacementPolicy and TenantConfig, as these are set externally.
struct Persistence {}
/// Parts of TenantState that are stored durably
struct TenantPersistence {
pub(crate) generation: Generation,
pub(crate) policy: PlacementPolicy,
pub(crate) config: TenantConfig,
}