diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2016-11-18 23:16:43 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2016-11-18 23:16:43 (GMT) |
commit | 9752f525152eab4d959f109797ffd941d438d62f (patch) | |
tree | 378e4c12847f45b3f0b5e1e4eb4e05351136ea1a /src/H5Pfapl.c | |
parent | 3c05e6725c8e889b64c8645f36ce6d3cdcc34d11 (diff) | |
download | hdf5-9752f525152eab4d959f109797ffd941d438d62f.zip hdf5-9752f525152eab4d959f109797ffd941d438d62f.tar.gz hdf5-9752f525152eab4d959f109797ffd941d438d62f.tar.bz2 |
Improve transaction support, add H5Fcreate_ff, H5Fopen_ff, H5Fclose_ff.
Diffstat (limited to 'src/H5Pfapl.c')
-rw-r--r-- | src/H5Pfapl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c index 61a63ea..e8bc054 100644 --- a/src/H5Pfapl.c +++ b/src/H5Pfapl.c @@ -40,6 +40,7 @@ #include "H5Eprivate.h" /* Error handling */ #include "H5Fprivate.h" /* Files */ #include "H5FDprivate.h" /* File drivers */ +#include "H5FFprivate.h" /* FFwd wrappers */ #include "H5VLprivate.h" /* VOL plugins */ #include "H5Iprivate.h" /* IDs */ #include "H5MMprivate.h" /* Memory Management */ @@ -342,6 +343,7 @@ H5P__facc_reg_prop(H5P_genclass_t *pclass) const H5FD_driver_prop_t def_driver_prop = H5F_ACS_FILE_DRV_DEF; /* Default VFL driver ID & info (initialized from a variable) */ const H5VL_plugin_prop_t def_vol_prop = H5F_ACS_VOL_DEF; /* Default VOL plugin ID & info (initialized from a variable) */ + hid_t trans_id = FAIL; herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_STATIC @@ -488,6 +490,11 @@ H5P__facc_reg_prop(H5P_genclass_t *pclass) NULL, NULL, NULL, NULL) < 0) HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class") + /* Register the transaction ID acquire property*/ + if(H5P_register_real(pclass, H5VL_ACQUIRE_TR_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") + #ifdef H5_HAVE_PARALLEL /* Register the metadata collective read flag */ if(H5P_register_real(pclass, H5_COLL_MD_READ_FLAG_NAME, H5F_ACS_COLL_MD_READ_FLAG_SIZE, &H5F_def_coll_md_read_flag_g, |