diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-06-13 20:35:17 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-06-13 20:35:17 (GMT) |
commit | 8abb016fa50524b96c58dadc4894900bb920fda4 (patch) | |
tree | 96f5a9e0db47bdeb9613b0ced7bb6cc08e92154b /src | |
parent | 1b2d904890f6b1852ea97e120765abf352e9f8fa (diff) | |
download | hdf5-8abb016fa50524b96c58dadc4894900bb920fda4.zip hdf5-8abb016fa50524b96c58dadc4894900bb920fda4.tar.gz hdf5-8abb016fa50524b96c58dadc4894900bb920fda4.tar.bz2 |
[svn-r7037] Purpose:
Bug fix
Description:
The fill time in a dataset with no fill value information created with an
older version of the library was getting set to H5D_FILL_TIME_ALLOC instead of
the new default H5D_FILL_TIME_IFSET and was causing H5Dcreate() calls with that
dataset creation property list to fail now.
Solution:
Set the new default in the fill time initialization for missing fill value
information.
Platforms tested:
FreeBSD 4.8 (sleipnir)
h5committest
Diffstat (limited to 'src')
-rw-r--r-- | src/H5D.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1994,7 +1994,7 @@ H5D_open_oid(H5G_entry_t *ent, hid_t dxpl_id) { H5D_t *dataset = NULL; /*new dataset struct */ H5D_t *ret_value = NULL; /*return value */ - H5O_fill_new_t fill = {NULL, 0, NULL, H5D_ALLOC_TIME_LATE, H5D_FILL_TIME_ALLOC, TRUE}; + H5O_fill_new_t fill = {NULL, 0, NULL, H5D_ALLOC_TIME_LATE, H5D_CRT_FILL_TIME_DEF, TRUE}; H5O_fill_t *fill_prop; /* Pointer to dataset's fill value area */ H5O_pline_t pline; /* I/O pipeline information */ H5D_layout_t layout; /* Dataset layout */ @@ -2111,6 +2111,9 @@ H5D_open_oid(H5G_entry_t *ent, hid_t dxpl_id) default: HGOTO_ERROR(H5E_DATASET, H5E_UNSUPPORTED, NULL, "not implemented yet"); } /* end switch */ + + /* Set the default fill time */ + fill.fill_time=H5D_CRT_FILL_TIME_DEF; } /* end if */ if(fill.fill_defined) { if(NULL==H5O_copy(H5O_FILL_ID, &fill, fill_prop)) |