block manager: read_block using old layout versions if necessary

This commit is contained in:
Alex Auvolat
2023-11-27 11:52:57 +01:00
parent 3ecd14b9f6
commit d6d239fc79
5 changed files with 50 additions and 9 deletions
+4 -2
View File
@@ -264,8 +264,10 @@ impl BlockManager {
F: Fn(DataBlockHeader, ByteStream) -> Fut,
Fut: futures::Future<Output = Result<T, Error>>,
{
let who = self.replication.read_nodes(hash);
let who = self.system.rpc_helper().request_order(&who);
let who = self
.system
.cluster_layout()
.block_read_nodes_of(hash, self.system.rpc_helper());
for node in who.iter() {
let node_id = NodeID::from(*node);