summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backends/jerasure/jerasure_rs_cauchy.c1
-rw-r--r--src/backends/jerasure/jerasure_rs_vand.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/backends/jerasure/jerasure_rs_cauchy.c b/src/backends/jerasure/jerasure_rs_cauchy.c
index aba148d..b06ff6d 100644
--- a/src/backends/jerasure/jerasure_rs_cauchy.c
+++ b/src/backends/jerasure/jerasure_rs_cauchy.c
@@ -176,6 +176,7 @@ static int jerasure_rs_cauchy_min_fragments(void *desc, int *missing_idxs,
}
if (j == jerasure_desc->k) {
ret = 0;
+ fragments_needed[j] = -1;
break;
}
}
diff --git a/src/backends/jerasure/jerasure_rs_vand.c b/src/backends/jerasure/jerasure_rs_vand.c
index bcf2dfc..970d205 100644
--- a/src/backends/jerasure/jerasure_rs_vand.c
+++ b/src/backends/jerasure/jerasure_rs_vand.c
@@ -156,6 +156,7 @@ static int jerasure_rs_vand_min_fragments(void *desc, int *missing_idxs,
}
if (j == jerasure_desc->k) {
ret = 0;
+ fragments_needed[j] = -1;
break;
}
}