Commit ef82b28
authored
- For EC parity rotate, set minimum_nr to data_tgt_nr + 1 instead of all EC targets.
This ensures that, even with some shard failures, at least one shard can return 2 keys (KDs).
- Make the enumeration break condition stricter: only break if num < minimum_nr, not <=,
to avoid premature termination when the buffer is exactly full.
Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com>
Signed-off-by: Wang Shilong <shilong.wang@hpe.com>
1 parent 0775f50 commit ef82b28
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
2784 | 2784 | | |
2785 | 2785 | | |
2786 | 2786 | | |
2787 | | - | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
2788 | 2790 | | |
2789 | | - | |
| 2791 | + | |
2790 | 2792 | | |
2791 | 2793 | | |
2792 | 2794 | | |
| |||
2914 | 2916 | | |
2915 | 2917 | | |
2916 | 2918 | | |
2917 | | - | |
| 2919 | + | |
2918 | 2920 | | |
2919 | 2921 | | |
2920 | 2922 | | |
| |||
0 commit comments