diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-09-17 20:36:44 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-09-17 20:36:44 (GMT) |
commit | f3eb6dba6e89b4824b67d3726896f0e433492013 (patch) | |
tree | 4f531d47563aecb6ee776eb8981b00deec4b0d04 /src/H5VLiod_attr.c | |
parent | d5574726a2de0f8142217dafd8ced642356d9bce (diff) | |
download | hdf5-f3eb6dba6e89b4824b67d3726896f0e433492013.zip hdf5-f3eb6dba6e89b4824b67d3726896f0e433492013.tar.gz hdf5-f3eb6dba6e89b4824b67d3726896f0e433492013.tar.bz2 |
[svn-r24147] revert adding hcs_t type.. does not look good when different checksum alg. are used.
Diffstat (limited to 'src/H5VLiod_attr.c')
-rw-r--r-- | src/H5VLiod_attr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5VLiod_attr.c b/src/H5VLiod_attr.c index fb7e875..d858cc3 100644 --- a/src/H5VLiod_attr.c +++ b/src/H5VLiod_attr.c @@ -102,6 +102,8 @@ H5VL_iod_server_attr_create_cb(AXE_engine_t UNUSED axe_engine, /* for the process that succeeded in creating the attribute, update the parent scratch pad, create attribute scratch pad */ if(0 == ret) { + uint32_t sp_cs; + /* create the metadata KV object for the attribute */ if(iod_obj_create(coh, wtid, NULL, IOD_OBJ_KV, NULL, NULL, &mdkv_id, NULL) < 0) @@ -112,9 +114,10 @@ H5VL_iod_server_attr_create_cb(AXE_engine_t UNUSED axe_engine, sp[1] = IOD_ID_UNDEFINED; sp[2] = IOD_ID_UNDEFINED; sp[3] = IOD_ID_UNDEFINED; + sp_cs = H5checksum(&sp, sizeof(sp), NULL); /* set scratch pad in attribute */ - if (iod_obj_set_scratch(attr_oh, wtid, &sp, NULL, NULL) < 0) + if (iod_obj_set_scratch(attr_oh, wtid, &sp, &sp_cs, NULL) < 0) HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't set scratch pad"); /* Open Metadata KV object for write */ |