diff options
author | Kota Tsuyuzaki <bloodeagle40234@gmail.com> | 2015-03-06 14:58:06 +0900 |
---|---|---|
committer | Kota Tsuyuzaki <bloodeagle40234@gmail.com> | 2015-03-06 14:58:06 +0900 |
commit | 1667acb87c2cc925e2414cc1b51ff7a5c6e77585 (patch) | |
tree | 55bd1ad87beb715fedfee4ce796b031cb2e292b0 /src/erasurecode_preprocessing.c | |
parent | de94bbad63e6c557c5fdb6d72b52966fea1062c5 (diff) | |
download | liberasurecode-1667acb87c2cc925e2414cc1b51ff7a5c6e77585.tar.gz |
Apply EINSUFFFRAGS to reconstruct
Diffstat (limited to 'src/erasurecode_preprocessing.c')
-rw-r--r-- | src/erasurecode_preprocessing.c | 2 |
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, |