summaryrefslogtreecommitdiff
path: root/src/erasurecode.c
diff options
context:
space:
mode:
authorEric Lambert <eric_lambert@xyratex.com>2014-09-25 13:23:06 -0700
committerEric Lambert <eric_lambert@xyratex.com>2014-09-25 13:23:06 -0700
commit06bb20ca1c9c7800ca3633ca1447deab68a5f0a4 (patch)
tree09b4839858f50d166c5bd40fcba38ab9ed1e1835 /src/erasurecode.c
parentc5d467de2a481bc833a506fbfd2d101dabd8a486 (diff)
downloadliberasurecode-06bb20ca1c9c7800ca3633ca1447deab68a5f0a4.tar.gz
crc32 checksum now supported (prior to this commit checksum values were
not being placed into the fragment header).
Diffstat (limited to 'src/erasurecode.c')
-rw-r--r--src/erasurecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/erasurecode.c b/src/erasurecode.c
index f4d7cab..b376568 100644
--- a/src/erasurecode.c
+++ b/src/erasurecode.c
@@ -998,7 +998,7 @@ int liberasurecode_get_fragment_metadata(char *fragment,
uint32_t computed_chksum = 0;
uint32_t stored_chksum = fragment_hdr->meta.chksum[0];
char *fragment_data = get_data_ptr_from_fragment(fragment);
- uint64_t fragment_size = get_fragment_size(fragment);
+ uint64_t fragment_size = fragment_hdr->meta.size;
computed_chksum = crc32(0, fragment_data, fragment_size);
if (stored_chksum != computed_chksum) {
fragment_metadata->chksum_mismatch = 1;