2
0
mirror of https://github.com/HDFGroup/hdf5.git synced 2025-04-12 17:31:09 +08:00

Initialize filter mask and chunk nbytes for 'Single' chunk index ()

This commit is contained in:
jhendersonHDF 2021-12-09 15:28:52 -06:00 committed by GitHub
parent e36aa06950
commit 364d8cc3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -125,8 +125,14 @@ H5D__single_idx_init(const H5D_chk_idx_info_t *idx_info, const H5S_t H5_ATTR_UNU
HDassert(idx_info->layout);
HDassert(idx_info->storage);
if (idx_info->pline->nused)
if (idx_info->pline->nused) {
idx_info->layout->flags |= H5O_LAYOUT_CHUNK_SINGLE_INDEX_WITH_FILTER;
if (!H5F_addr_defined(idx_info->storage->idx_addr)) {
idx_info->storage->u.single.nbytes = 0;
idx_info->storage->u.single.filter_mask = 0;
}
}
else
idx_info->layout->flags = 0;