mirror of
https://github.com/rustfs/rustfs.git
synced 2026-01-17 09:40:32 +00:00
Merge pull request #197 from rustfs/ec_test
fix: #196 can_decode blocks check err
This commit is contained in:
@@ -588,7 +588,7 @@ impl ShardReader {
|
||||
fn can_decode(&self, bufs: &[Option<Vec<u8>>]) -> 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user