Librarify common etcd timeline logic

This commit is contained in:
Kirill Bulatov
2022-05-04 18:28:46 +03:00
committed by Kirill Bulatov
parent dd6dca9072
commit d4e155aaa3
15 changed files with 633 additions and 147 deletions

View File

@@ -224,7 +224,7 @@ impl fmt::Display for ZTenantTimelineId {
// Unique ID of a storage node (safekeeper or pageserver). Supposed to be issued
// by the console.
#[derive(Clone, Copy, Eq, Ord, PartialEq, PartialOrd, Debug, Serialize, Deserialize)]
#[derive(Clone, Copy, Eq, Ord, PartialEq, PartialOrd, Hash, Debug, Serialize, Deserialize)]
#[serde(transparent)]
pub struct ZNodeId(pub u64);