diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-13 18:00:59 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-13 18:00:59 (GMT) |
commit | 00edaf52c5c31134dcaf4fbdc1933104d510236f (patch) | |
tree | c23928a4a7a490e13f0cfcdd43c030a7228ce22b /src/H5Ofill.c | |
parent | f151f5a2a567037650b7acae74b3bd3cdc93d7af (diff) | |
download | hdf5-00edaf52c5c31134dcaf4fbdc1933104d510236f.zip hdf5-00edaf52c5c31134dcaf4fbdc1933104d510236f.tar.gz hdf5-00edaf52c5c31134dcaf4fbdc1933104d510236f.tar.bz2 |
[svn-r8053] Purpose:
Bug fix
Description:
Correct two problems with variable-length datatypes in datasets:
- When overwriting an entire dataset, writing the fill value to the
file would be skipped, causing problems for VL datatypes when
objects in the file had been unlinked (and thus the space in the
file was not all zeros)
- When an application has set a fill-value for a dataset and the
dataset's datatype contained a VL datatype, the library was filling
space on disk with the memory form of the VL information, instead
of the disk form.
Platforms tested:
FreeBSD 4.9 (sleipnir)
h5committest
Diffstat (limited to 'src/H5Ofill.c')
-rw-r--r-- | src/H5Ofill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Ofill.c b/src/H5Ofill.c index ec34202..521b94d 100644 --- a/src/H5Ofill.c +++ b/src/H5Ofill.c @@ -883,9 +883,9 @@ H5O_fill_convert(void *_fill, H5T_t *dset_type, hid_t dxpl_id) /* Don't bother doing anything if there will be no actual conversion */ if (!H5T_path_noop(tpath)) { if ((src_id = H5I_register(H5I_DATATYPE, - H5T_copy(fill->type, H5T_COPY_TRANSIENT)))<0 || + H5T_copy(fill->type, H5T_COPY_ALL)))<0 || (dst_id = H5I_register(H5I_DATATYPE, - H5T_copy(dset_type, H5T_COPY_TRANSIENT)))<0) + H5T_copy(dset_type, H5T_COPY_ALL)))<0) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to copy/register data type"); /* |