summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod_attr.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-10-31 18:36:50 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-10-31 18:36:50 (GMT)
commitc2641d2d1c1ee2db8c4cfb472c8f6f2b5edd1680 (patch)
tree636dc8559d50f7d3300513a63fd7aaa95fe1902f /src/H5VLiod_attr.c
parent49ed87466d33047abff0276b319837276ee2a35b (diff)
downloadhdf5-c2641d2d1c1ee2db8c4cfb472c8f6f2b5edd1680.zip
hdf5-c2641d2d1c1ee2db8c4cfb472c8f6f2b5edd1680.tar.gz
hdf5-c2641d2d1c1ee2db8c4cfb472c8f6f2b5edd1680.tar.bz2
[svn-r24388] switch to using Mercury 64 bit CRC algorithm instead of internal checksum algorithm.
Diffstat (limited to 'src/H5VLiod_attr.c')
-rw-r--r--src/H5VLiod_attr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5VLiod_attr.c b/src/H5VLiod_attr.c
index c15d552..1853471 100644
--- a/src/H5VLiod_attr.c
+++ b/src/H5VLiod_attr.c
@@ -114,7 +114,7 @@ H5VL_iod_server_attr_create_cb(AXE_engine_t UNUSED axe_engine,
/* set scratch pad in attribute */
if(cs_scope & H5_CHECKSUM_IOD) {
- sp_cs = H5checksum(&sp, sizeof(sp), NULL);
+ sp_cs = H5_checksum_crc64(&sp, sizeof(sp));
if (iod_obj_set_scratch(attr_oh.wr_oh, wtid, &sp, &sp_cs, NULL) < 0)
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't set scratch pad");
}
@@ -490,7 +490,7 @@ H5VL_iod_server_attr_read_cb(AXE_engine_t UNUSED axe_engine,
/* MSC - NEED IOD */
#if 0
- attr_cs = H5checksum(buf, size, NULL);
+ attr_cs = H5_checksum_crc64(buf, size);
if(attr_cs != iod_cs)
HGOTO_ERROR(H5E_SYM, H5E_READERROR, FAIL, "Data corruption detected when reading attribute");
#endif
@@ -672,7 +672,7 @@ H5VL_iod_server_attr_write_cb(AXE_engine_t UNUSED axe_engine,
/* set the file descriptor */
file_desc = hslabs;
- attr_cs = H5checksum(buf, size, NULL);
+ attr_cs = H5_checksum_crc64(buf, size);
/* write from array object */
if(iod_array_write(iod_oh, wtid, NULL, mem_desc, &file_desc, &attr_cs, NULL) < 0)