diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-09-10 23:02:03 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-09-10 23:02:03 (GMT) |
commit | 5f6d336144b6af368373e80038488e860b28cb7b (patch) | |
tree | e71f35941f1143938744b9388b595f8cc4490173 /src/H5Pdxpl.c | |
parent | 263d13a4c760c61c293ae9840aaf2f4ce76d541a (diff) | |
download | hdf5-5f6d336144b6af368373e80038488e860b28cb7b.zip hdf5-5f6d336144b6af368373e80038488e860b28cb7b.tar.gz hdf5-5f6d336144b6af368373e80038488e860b28cb7b.tar.bz2 |
[svn-r24122] more transactions/read contexts
- include 2 examples for using transactions
- IOD calls at server side still need to be updated
Diffstat (limited to 'src/H5Pdxpl.c')
-rw-r--r-- | src/H5Pdxpl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/H5Pdxpl.c b/src/H5Pdxpl.c index 7ece9c6..d02ec73 100644 --- a/src/H5Pdxpl.c +++ b/src/H5Pdxpl.c @@ -37,6 +37,7 @@ #include "H5ACprivate.h" /* Cache */ #include "H5Dprivate.h" /* Datasets */ #include "H5Eprivate.h" /* Error handling */ +#include "H5FFprivate.h" /* Fast Forward routines */ #include "H5Iprivate.h" /* IDs */ #include "H5MMprivate.h" /* Memory management */ #include "H5Ppkg.h" /* Property lists */ @@ -308,6 +309,8 @@ static const size_t H5D_def_direct_chunk_datasize_g = H5D_XFER_DIRECT_CHUNK_WRIT static herr_t H5P__dxfr_reg_prop(H5P_genclass_t *pclass) { + hid_t trans_id = FAIL; + hid_t context_id = FAIL; herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_STATIC @@ -508,6 +511,16 @@ H5P__dxfr_reg_prop(H5P_genclass_t *pclass) NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0) HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class") + /* Register the transaction ID property*/ + if(H5P_register_real(pclass, H5VL_TRANS_ID, sizeof(hid_t), &trans_id, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0) + HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class") + + /* Register the context ID property*/ + if(H5P_register_real(pclass, H5VL_CONTEXT_ID, sizeof(hid_t), &context_id, + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0) + HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class") + done: FUNC_LEAVE_NOAPI(ret_value) } /* end H5P__dxfr_reg_prop() */ |