aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/layout/helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc/layout/helper.rs')
-rw-r--r--src/rpc/layout/helper.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rpc/layout/helper.rs b/src/rpc/layout/helper.rs
index 44c826f9..c08a5629 100644
--- a/src/rpc/layout/helper.rs
+++ b/src/rpc/layout/helper.rs
@@ -219,6 +219,11 @@ impl LayoutHelper {
ret
}
+ pub fn current_storage_nodes_of(&self, position: &Hash) -> Vec<Uuid> {
+ let ver = self.current();
+ ver.nodes_of(position, ver.replication_factor).collect()
+ }
+
pub fn trackers_hash(&self) -> Hash {
self.trackers_hash
}