layout: add helpers to LayoutHistory and prepare integration with Table

This commit is contained in:
Alex Auvolat
2023-11-09 16:32:31 +01:00
parent 9d95f6f704
commit df36cf3099
5 changed files with 74 additions and 13 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ impl LayoutVersion {
.collect::<Vec<_>>()
}
/// Walk the ring to find the n servers in which data should be replicated
/// Return the n servers in which data for this hash should be replicated
pub fn nodes_of(&self, position: &Hash, n: usize) -> Vec<Uuid> {
assert_eq!(n, self.replication_factor);