summaryrefslogtreecommitdiffstats
path: root/src/H5Dio.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-04-24 05:50:00 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-04-24 05:50:00 (GMT)
commitb0980a5f5418dcfabb442592d82eebb625dc6220 (patch)
tree03f5cda6d273681f481c5283593c397a30eab311 /src/H5Dio.c
parent3ac0a74bf3396fc684df961add72b6a80c56ae75 (diff)
downloadhdf5-b0980a5f5418dcfabb442592d82eebb625dc6220.zip
hdf5-b0980a5f5418dcfabb442592d82eebb625dc6220.tar.gz
hdf5-b0980a5f5418dcfabb442592d82eebb625dc6220.tar.bz2
[svn-r29776] Description:
Bring "file pointer patching" code & test from revise_chunks to trunk. Tested on: MacOSX/64 10.11.4 (amazon) w/serial, parallel & production (h5committest forthcoming)
Diffstat (limited to 'src/H5Dio.c')
-rw-r--r--src/H5Dio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c
index 7b3f553..5004132 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -939,6 +939,10 @@ H5D__typeinfo_init(const H5D_t *dset, const H5D_dxpl_cache_t *dxpl_cache,
HDassert(type_info);
HDassert(dset);
+ /* Patch the top level file pointer for dt->shared->u.vlen.f if needed */
+ if(H5T_patch_vlen_file(dset->shared->type, dset->oloc.file) < 0 )
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTOPENOBJ, FAIL, "can't patch VL datatype file pointer")
+
/* Initialize type info safely */
HDmemset(type_info, 0, sizeof(*type_info));