aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/layout/schema.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-07 10:30:26 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-07 10:30:26 +0100
commitc8356a91d9bf1d1488ec288099f2a55a1019918f (patch)
tree1782fc08ed6b2c6b6813c8c617d1be564e9229e9 /src/rpc/layout/schema.rs
parentc04dd8788a3764da2f307b1d10c2d56b7b0e4a61 (diff)
downloadgarage-c8356a91d9bf1d1488ec288099f2a55a1019918f.tar.gz
garage-c8356a91d9bf1d1488ec288099f2a55a1019918f.zip
layout updates: fix the set of nodes among which minima are calculated
Diffstat (limited to 'src/rpc/layout/schema.rs')
-rw-r--r--src/rpc/layout/schema.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/layout/schema.rs b/src/rpc/layout/schema.rs
index cb36297d..49e84420 100644
--- a/src/rpc/layout/schema.rs
+++ b/src/rpc/layout/schema.rs
@@ -408,7 +408,7 @@ impl UpdateTracker {
}
}
- pub(crate) fn min(&self, storage_nodes: &[Uuid], min_version: u64) -> u64 {
+ pub(crate) fn min_among(&self, storage_nodes: &[Uuid], min_version: u64) -> u64 {
storage_nodes
.iter()
.map(|x| self.0.get(x).copied().unwrap_or(min_version))