diff options
author | Mendes <mendes.oulamara@pm.me> | 2022-10-06 12:54:51 +0200 |
---|---|---|
committer | Mendes <mendes.oulamara@pm.me> | 2022-10-06 12:54:51 +0200 |
commit | 9407df60cc00fc70c10f73bc4b600085789d5353 (patch) | |
tree | f0f0e0e3ac2b89dfad99dcc7094e5e0bbe3f1a72 /src/rpc/system.rs | |
parent | a951b6c45273e59b98f974937aebb8ada8816ab8 (diff) | |
download | garage-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.rs | 1 |
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(); |