summaryrefslogtreecommitdiff
path: root/src/erasurecode_preprocessing.c
diff options
context:
space:
mode:
authorKota Tsuyuzaki <bloodeagle40234@gmail.com>2015-03-06 14:58:06 +0900
committerKota Tsuyuzaki <bloodeagle40234@gmail.com>2015-03-06 14:58:06 +0900
commit1667acb87c2cc925e2414cc1b51ff7a5c6e77585 (patch)
tree55bd1ad87beb715fedfee4ce796b031cb2e292b0 /src/erasurecode_preprocessing.c
parentde94bbad63e6c557c5fdb6d72b52966fea1062c5 (diff)
downloadliberasurecode-1667acb87c2cc925e2414cc1b51ff7a5c6e77585.tar.gz
Apply EINSUFFFRAGS to reconstruct
Diffstat (limited to 'src/erasurecode_preprocessing.c')
-rw-r--r--src/erasurecode_preprocessing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/erasurecode_preprocessing.c b/src/erasurecode_preprocessing.c
index e8bd510..1f3d3ba 100644
--- a/src/erasurecode_preprocessing.c
+++ b/src/erasurecode_preprocessing.c
@@ -248,7 +248,7 @@ int get_fragment_partition(
}
// TODO: In general, it is possible to reconstruct one or more fragments
// when more than m fragments are missing (e.g. flat XOR codes)
- return (num_missing > m) ? -1 : 0;
+ return (num_missing > m) ? -EINSUFFFRAGS : 0;
}
int fragments_to_string(int k, int m,