summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-12-02 17:07:25 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-12-02 17:07:25 (GMT)
commitadcf8a315e82c0848d126e7e46b662930c081896 (patch)
tree270c1a15f2cdfb4da645f7a59da639b9fff35d29 /src
parent4d50f9a7a8737380b37b7cde751dbeae3b7c6b7c (diff)
downloadhdf5-adcf8a315e82c0848d126e7e46b662930c081896.zip
hdf5-adcf8a315e82c0848d126e7e46b662930c081896.tar.gz
hdf5-adcf8a315e82c0848d126e7e46b662930c081896.tar.bz2
Fix the FSM bug when setting the FSM threshold to a non-default value.
Check for smaller or larger section size after merging and shrinking a section, for this case is the section that is smaller than threshold (see H5MF_xfree() in H5MF.c). It is possible for the section to be smaller after merging/shrinking (see H5MF__sect_large_shrink() in H5MFsection.c).
Diffstat (limited to 'src')
-rw-r--r--src/H5FSsection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FSsection.c b/src/H5FSsection.c
index 27486f1..9fbc6f0 100644
--- a/src/H5FSsection.c
+++ b/src/H5FSsection.c
@@ -1617,7 +1617,7 @@ H5FS_sect_try_merge(H5F_t *f, H5FS_t *fspace, H5FS_section_info_t *sect,
} /* end if */
else {
/* Check if section is merged */
- if(sect->size > saved_fs_size) {
+ if(sect->size != saved_fs_size) {
if(H5FS__sect_link(fspace, sect, flags) < 0)
HGOTO_ERROR(H5E_FSPACE, H5E_CANTINSERT, FAIL, "can't insert free space section into skip list")
sinfo_modified = TRUE;