aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/layout/helper.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-03-27 10:44:03 +0100
committerAlex Auvolat <alex@adnab.me>2024-03-27 10:44:03 +0100
commitc0eeb0b0f32ed0a27cfdf9297d0e71e1b9948b73 (patch)
tree5b2c7c31ce02f78727f0ea9a90ec89b274f21c01 /src/rpc/layout/helper.rs
parent51d11b4b269dbe0dd207a307ddac3811a4cd5079 (diff)
downloadgarage-c0eeb0b0f32ed0a27cfdf9297d0e71e1b9948b73.tar.gz
garage-c0eeb0b0f32ed0a27cfdf9297d0e71e1b9948b73.zip
[next-0.10] fixes to k2v rpc + comment fixes
Diffstat (limited to 'src/rpc/layout/helper.rs')
-rw-r--r--src/rpc/layout/helper.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rpc/layout/helper.rs b/src/rpc/layout/helper.rs
index 2835347a..e3096945 100644
--- a/src/rpc/layout/helper.rs
+++ b/src/rpc/layout/helper.rs
@@ -153,10 +153,14 @@ impl LayoutHelper {
// ------------------ read helpers ---------------
+ /// Return all nodes that have a role (gateway or storage)
+ /// in one of the currently active layout versions
pub fn all_nodes(&self) -> &[Uuid] {
&self.all_nodes
}
+ /// Return all nodes that are configured to store data
+ /// in one of the currently active layout versions
pub fn all_nongateway_nodes(&self) -> &[Uuid] {
&self.all_nongateway_nodes
}