summaryrefslogtreecommitdiffstats
path: root/src/H5MFsection.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2013-04-09 23:18:29 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2013-04-09 23:18:29 (GMT)
commitf56cc4156ec09d434b4f474afe5ed5b3786c5fe5 (patch)
tree04c71800e236564d469cd88256728825e3928baa /src/H5MFsection.c
parent0b7490e7e4f2121b15fe01daa1cce318dab36ad9 (diff)
downloadhdf5-f56cc4156ec09d434b4f474afe5ed5b3786c5fe5.zip
hdf5-f56cc4156ec09d434b4f474afe5ed5b3786c5fe5.tar.gz
hdf5-f56cc4156ec09d434b4f474afe5ed5b3786c5fe5.tar.bz2
[svn-r23568] Bring revision 22634:22690 from trunk to revise_chunks.
h5committested.
Diffstat (limited to 'src/H5MFsection.c')
-rw-r--r--src/H5MFsection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5MFsection.c b/src/H5MFsection.c
index 89b2219..0572def 100644
--- a/src/H5MFsection.c
+++ b/src/H5MFsection.c
@@ -328,6 +328,10 @@ HDfprintf(stderr, "%s: section {%a, %Hu}, shrinks file, eoa = %a\n", FUNC, sect-
HGOTO_DONE(TRUE)
} /* end if */
else {
+ /* Shrinking can't occur if the 'eoa_shrink_only' flag is set and we're not shrinking the EOA */
+ if(udata->allow_eoa_shrink_only)
+ HGOTO_DONE(FALSE)
+
/* Check if this section is allowed to merge with metadata aggregation block */
if(udata->f->shared->fs_aggr_merge[udata->alloc_type] & H5F_FS_MERGE_METADATA) {
htri_t status; /* Status from aggregator adjoin */