aboutsummaryrefslogtreecommitdiff
path: root/src/block/manager.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-08 12:02:24 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-08 12:02:24 +0100
commit5dd200c015aed786173f0e11541b0505f95dd6d1 (patch)
treedc490bcdf93fbba7ff9c14e48ca577f93545e375 /src/block/manager.rs
parent063294dd569e10c6d85e29eb6507249eece00956 (diff)
downloadgarage-5dd200c015aed786173f0e11541b0505f95dd6d1.tar.gz
garage-5dd200c015aed786173f0e11541b0505f95dd6d1.zip
layout: move block_read_nodes_of to rpc_helper to avoid double-locking
(in theory, this could have caused a deadlock)
Diffstat (limited to 'src/block/manager.rs')
-rw-r--r--src/block/manager.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/manager.rs b/src/block/manager.rs
index 47111160..bfd390ee 100644
--- a/src/block/manager.rs
+++ b/src/block/manager.rs
@@ -266,7 +266,7 @@ impl BlockManager {
{
let who = self
.system
- .cluster_layout()
+ .rpc_helper()
.block_read_nodes_of(hash, self.system.rpc_helper());
for node in who.iter() {