summaryrefslogtreecommitdiff
path: root/src/erasurecode_preprocessing.c
diff options
context:
space:
mode:
authorEric Lambert <eric_lambert@xyratex.com>2014-07-31 16:02:28 -0700
committerEric Lambert <eric_lambert@xyratex.com>2014-07-31 16:02:28 -0700
commit009aa4e80b118ceaeaf140924caa004a39dd8b55 (patch)
tree97659c5054439ed4a9392b9602497b837740072e /src/erasurecode_preprocessing.c
parente39aaa3dd93d178c70c8c2d11a86a882c22c4fa1 (diff)
downloadliberasurecode-009aa4e80b118ceaeaf140924caa004a39dd8b55.tar.gz
In the erasurecode_preprocessing.c routines for decode/reconstruct, clearly
distinguish between the fragment and the data/parity buffers, ie maintain data, parity pointer arrays separate from the fragment pointers.
Diffstat (limited to 'src/erasurecode_preprocessing.c')
-rw-r--r--src/erasurecode_preprocessing.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/erasurecode_preprocessing.c b/src/erasurecode_preprocessing.c
index 3c81788..a45cd65 100644
--- a/src/erasurecode_preprocessing.c
+++ b/src/erasurecode_preprocessing.c
@@ -170,13 +170,6 @@ int prepare_fragments_for_decode(
return -1;
}
}
-
- /* Set the data element to the fragment payload */
- data[i] = get_data_ptr_from_fragment(data[i]);
- if (data[i] == NULL) {
- log_error("Invalid data pointer in fragment!");
- return -1;
- }
}
/* Perform the same allocation, alignment checks on the parity fragments */
@@ -199,12 +192,6 @@ int prepare_fragments_for_decode(
*realloc_bm = *realloc_bm | (1 << (k + i));
}
- /* Set the parity element to the fragment payload */
- parity[i] = get_data_ptr_from_fragment(parity[i]);
- if (parity[i] == NULL) {
- log_error("Invalid parity pointer in fragment!");
- return -1;
- }
}
*orig_size = orig_data_size;