diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2017-05-07 04:40:44 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2017-05-07 04:40:44 (GMT) |
commit | 6a4f1187ccef6fd092cf70154e7ffa33f4c2f648 (patch) | |
tree | b10102f12314d2e9d55d01d86cb8532828bad0ad /src/H5Dcompact.c | |
parent | 7916b845826bc59ba455d1b14b6222c8f7f5ad44 (diff) | |
download | hdf5-6a4f1187ccef6fd092cf70154e7ffa33f4c2f648.zip hdf5-6a4f1187ccef6fd092cf70154e7ffa33f4c2f648.tar.gz hdf5-6a4f1187ccef6fd092cf70154e7ffa33f4c2f648.tar.bz2 |
Fix for the two issues reported in HDFFV-10051:
(1) Repeated open/close of a compact dataset fails due to the
increment of ndims in the dataset structure for every open.
--This is done only for chunked dataset via H5D__chunk_set_sizes().
(2) layout "dirty" flag for a compact dataset is not reset
properly after flushing the data at dataset close.
--Reset the "dirty" flag before flushing the message to the object header
via H5O_msg_write().
Tested on moohan, kituo, platypus, ostrich, osx1010test, quail, emu.
Diffstat (limited to 'src/H5Dcompact.c')
-rw-r--r-- | src/H5Dcompact.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dcompact.c b/src/H5Dcompact.c index 2578975..e542e71 100644 --- a/src/H5Dcompact.c +++ b/src/H5Dcompact.c @@ -368,9 +368,9 @@ H5D__compact_flush(H5D_t *dset, hid_t dxpl_id) /* Check if the buffered compact information is dirty */ if(dset->shared->layout.storage.u.compact.dirty) { + dset->shared->layout.storage.u.compact.dirty = FALSE; if(H5O_msg_write(&(dset->oloc), H5O_LAYOUT_ID, 0, H5O_UPDATE_TIME, &(dset->shared->layout), dxpl_id) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to update layout message") - dset->shared->layout.storage.u.compact.dirty = FALSE; } /* end if */ done: |