diff options
author | Alex Auvolat <alex@adnab.me> | 2023-11-09 15:52:45 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-11-09 15:52:45 +0100 |
commit | 9d95f6f7040c1899715ae4f984313427b1432758 (patch) | |
tree | 9efc076960e3a2304e9d91d4443b08139cc998c0 /src/rpc/layout/schema.rs | |
parent | bad7cc812ead88e9f334405c5c082d79c14c8898 (diff) | |
download | garage-9d95f6f7040c1899715ae4f984313427b1432758.tar.gz garage-9d95f6f7040c1899715ae4f984313427b1432758.zip |
layout: fix tracker bugs
Diffstat (limited to 'src/rpc/layout/schema.rs')
-rw-r--r-- | src/rpc/layout/schema.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/layout/schema.rs b/src/rpc/layout/schema.rs index 9f5d6f62..db60c806 100644 --- a/src/rpc/layout/schema.rs +++ b/src/rpc/layout/schema.rs @@ -190,7 +190,7 @@ mod v010 { use garage_util::crdt::{Lww, LwwMap}; use garage_util::data::{Hash, Uuid}; use serde::{Deserialize, Serialize}; - use std::collections::HashMap; + use std::collections::BTreeMap; pub use v09::{LayoutParameters, NodeRole, NodeRoleV, ZoneRedundancy}; /// The layout of the cluster, i.e. the list of roles @@ -257,7 +257,7 @@ mod v010 { /// The history of cluster layouts #[derive(Clone, Debug, Serialize, Deserialize, Default, PartialEq)] - pub struct UpdateTracker(pub HashMap<Uuid, u64>); + pub struct UpdateTracker(pub BTreeMap<Uuid, u64>); impl garage_util::migrate::Migrate for LayoutHistory { const VERSION_MARKER: &'static [u8] = b"G010lh"; @@ -278,7 +278,7 @@ mod v010 { version .nongateway_nodes() .map(|x| (x, version.version)) - .collect::<HashMap<Uuid, u64>>(), + .collect::<BTreeMap<Uuid, u64>>(), ); let staging = LayoutStaging { parameters: previous.staging_parameters, |