aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/system.rs
diff options
context:
space:
mode:
authorMendes <mendes.oulamara@pm.me>2022-10-06 12:54:51 +0200
committerMendes <mendes.oulamara@pm.me>2022-10-06 12:54:51 +0200
commit9407df60cc00fc70c10f73bc4b600085789d5353 (patch)
treef0f0e0e3ac2b89dfad99dcc7094e5e0bbe3f1a72 /src/rpc/system.rs
parenta951b6c45273e59b98f974937aebb8ada8816ab8 (diff)
downloadgarage-9407df60cc00fc70c10f73bc4b600085789d5353.tar.gz
garage-9407df60cc00fc70c10f73bc4b600085789d5353.zip
Corrected two bugs:
- self.node_id_vec was not properly updated when the previous ring was empty - ClusterLayout::merge was not considering changes in the layout parameters
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r--src/rpc/system.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs
index 9e0bfa11..655d21de 100644
--- a/src/rpc/system.rs
+++ b/src/rpc/system.rs
@@ -565,6 +565,7 @@ impl System {
return Err(Error::Message(msg));
}
+
let update_ring = self.update_ring.lock().await;
let mut layout: ClusterLayout = self.ring.borrow().layout.clone();