summaryrefslogtreecommitdiffstats
path: root/src/H5HFhdr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-07-24 23:13:29 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-07-24 23:13:29 (GMT)
commit9a520f67b2e8379e28c22f0c3578a9ce43b4907a (patch)
tree86cc109ff485f024ec0f34afad9350fe9def2573 /src/H5HFhdr.c
parente143242ce101661a29c5a65f0dd9a4aa37a1af64 (diff)
downloadhdf5-9a520f67b2e8379e28c22f0c3578a9ce43b4907a.zip
hdf5-9a520f67b2e8379e28c22f0c3578a9ce43b4907a.tar.gz
hdf5-9a520f67b2e8379e28c22f0c3578a9ce43b4907a.tar.bz2
[svn-r14012] Description:
Fix problem with I/O pipeline messages where the version of the format for a I/O pipeline message could depend on the "use the latest format" flag from the file after it was initially created. Tested on: FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Mac OS X/32 10.4.10 (amazon) Solaris/32 2.10 (linew)
Diffstat (limited to 'src/H5HFhdr.c')
-rw-r--r--src/H5HFhdr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5HFhdr.c b/src/H5HFhdr.c
index 053adbb..c1b856b 100644
--- a/src/H5HFhdr.c
+++ b/src/H5HFhdr.c
@@ -424,6 +424,12 @@ H5HF_hdr_create(H5F_t *f, hid_t dxpl_id, const H5HF_create_t *cparam)
if(NULL == H5O_msg_copy(H5O_PLINE_ID, &(cparam->pline), &(hdr->pline)))
HGOTO_ERROR(H5E_HEAP, H5E_CANTCOPY, HADDR_UNDEF, "can't copy I/O filter pipeline")
+ /* Pay attention to the latest version flag for the file */
+ if(H5F_USE_LATEST_FORMAT(hdr->f))
+ /* Set the latest version for the I/O pipeline message */
+ if(H5Z_set_latest_version(&(hdr->pline)) < 0)
+ HGOTO_ERROR(H5E_HEAP, H5E_CANTSET, HADDR_UNDEF, "can't set latest version of I/O filter pipeline")
+
/* Compute the I/O filters' encoded size */
if(0 == (hdr->filter_len = H5O_msg_raw_size(hdr->f, H5O_PLINE_ID, FALSE, &(hdr->pline))))
HGOTO_ERROR(H5E_HEAP, H5E_CANTGETSIZE, HADDR_UNDEF, "can't get I/O filter pipeline size")