From 82799c3ac503a456817413b087f82b576a97d7ba Mon Sep 17 00:00:00 2001 From: weisd Date: Mon, 30 Dec 2024 14:00:57 +0800 Subject: [PATCH] fix can_decode num count --- ecstore/src/erasure.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecstore/src/erasure.rs b/ecstore/src/erasure.rs index 6ca7a25d9..64c04f523 100644 --- a/ecstore/src/erasure.rs +++ b/ecstore/src/erasure.rs @@ -588,7 +588,7 @@ impl ShardReader { fn can_decode(&self, bufs: &[Option>]) -> bool { let c = bufs.iter().filter(|v| v.is_some()).count(); if self.parity_block_count > 0 { - c > self.data_block_count + c >= self.data_block_count } else { c == self.data_block_count }