summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2016-02-12 16:54:39 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2016-02-12 16:54:39 (GMT)
commit8025f6b7123979d05688ccf22502b30b4008488b (patch)
tree91e1e27127c457aa40fecdb25c1e60b09665345e /src
parent20187288971b09cf754c75c4553b0ec5a0538118 (diff)
downloadhdf5-8025f6b7123979d05688ccf22502b30b4008488b.zip
hdf5-8025f6b7123979d05688ccf22502b30b4008488b.tar.gz
hdf5-8025f6b7123979d05688ccf22502b30b4008488b.tar.bz2
[svn-r29096] fix bug in internal dxpls generated exposed by production and parallel.
Diffstat (limited to 'src')
-rw-r--r--src/H5AC.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 958cc61..6cd3b0e 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -207,6 +207,14 @@ H5AC__init_package(void)
if((H5AC_ind_read_dxpl_id = H5P_create_id(H5P_CLS_DATASET_XFER_g, FALSE)) < 0)
HGOTO_ERROR(H5E_CACHE, H5E_CANTCREATE, FAIL, "unable to register property list")
+ /* Get an ID for the no I/O internal dxpl */
+ if((H5AC_noio_dxpl_id = H5P_create_id(H5P_CLS_DATASET_XFER_g, FALSE)) < 0)
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTCREATE, FAIL, "unable to register property list")
+
+ /* Get an ID for the raw data (H5AC) dxpl */
+ if((H5AC_rawdata_dxpl_id = H5P_create_id(H5P_CLS_DATASET_XFER_g, FALSE)) < 0)
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTCREATE, FAIL, "unable to register property list")
+
/* if this is a debug build, set the dxpl type flag on the
independent metadata dxpl and create the noio and raw data internal dxpls */
#ifdef H5_DEBUG_BUILD
@@ -218,9 +226,6 @@ H5AC__init_package(void)
if(H5P_set(xfer_plist, H5FD_DXPL_TYPE_NAME, &dxpl_type) < 0)
HGOTO_ERROR(H5E_CACHE, H5E_CANTSET, FAIL, "can't set dxpl type property")
- /* Get an ID for the no I/O internal dxpl */
- if((H5AC_noio_dxpl_id = H5P_create_id(H5P_CLS_DATASET_XFER_g, FALSE)) < 0)
- HGOTO_ERROR(H5E_CACHE, H5E_CANTCREATE, FAIL, "unable to register property list")
/* Get the property list object */
if (NULL == (xfer_plist = (H5P_genplist_t *)H5I_object(H5AC_noio_dxpl_id)))
HGOTO_ERROR(H5E_CACHE, H5E_BADATOM, FAIL, "can't get new property list object")
@@ -229,9 +234,6 @@ H5AC__init_package(void)
if(H5P_set(xfer_plist, H5FD_DXPL_TYPE_NAME, &dxpl_type) < 0)
HGOTO_ERROR(H5E_CACHE, H5E_CANTSET, FAIL, "can't set dxpl type property")
- /* Get an ID for the metadata (H5AC) dxpl */
- if((H5AC_rawdata_dxpl_id = H5P_create_id(H5P_CLS_DATASET_XFER_g, FALSE)) < 0)
- HGOTO_ERROR(H5E_CACHE, H5E_CANTCREATE, FAIL, "unable to register property list")
/* Get the property list object */
if (NULL == (xfer_plist = (H5P_genplist_t *)H5I_object(H5AC_rawdata_dxpl_id)))
HGOTO_ERROR(H5E_CACHE, H5E_BADATOM, FAIL, "can't get new property list object")