summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-04-02 21:33:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-04-02 21:33:57 (GMT)
commitfb3cfc0a79b60ab29f6a5fff9c7d5c68b50d1144 (patch)
tree872468dab5a4a466b92e4b85bbf3c28047929ecd /src
parentbe51656400c4b809f144844629e1cef7d2d7356c (diff)
downloadhdf5-fb3cfc0a79b60ab29f6a5fff9c7d5c68b50d1144.zip
hdf5-fb3cfc0a79b60ab29f6a5fff9c7d5c68b50d1144.tar.gz
hdf5-fb3cfc0a79b60ab29f6a5fff9c7d5c68b50d1144.tar.bz2
Revert using H5MF_sect_small_can_shrink and H5MF_sect_small_shrink for the
file's free space manager (and add a comment about them).
Diffstat (limited to 'src')
-rw-r--r--src/H5MFsection.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/H5MFsection.c b/src/H5MFsection.c
index 4c021b2..fe140a7 100644
--- a/src/H5MFsection.c
+++ b/src/H5MFsection.c
@@ -144,8 +144,8 @@ H5FS_section_class_t H5MF_FSPACE_SECT_CLS_SMALL[1] = {{
H5MF_sect_deserialize, /* Deserialize section */
H5MF_sect_small_can_merge, /* Can sections merge? */
H5MF_sect_small_merge, /* Merge sections */
- H5MF_sect_small_can_shrink, /* Can section shrink container?*/
- H5MF_sect_small_shrink, /* Shrink container w/section */
+ NULL, /* Can section shrink container?*/
+ NULL, /* Shrink container w/section */
H5MF_sect_free, /* Free section */
H5MF_sect_valid, /* Check validity of section */
H5MF_sect_split, /* Split section node for alignment */
@@ -694,6 +694,12 @@ done:
*
* Note: A small section is allowed to shrink only at closing.
*
+ * Note: This is unused currently, to maintain the invariant that the
+ * file size is always a multiple of the page size.
+ *
+ * (This function should probably be deleted, or the invariant
+ * relaxed)
+ *
* Return: Success: non-negative (TRUE/FALSE)
* Failure: negative
*
@@ -746,6 +752,12 @@ done:
*
* Purpose: Shrink container with section
*
+ * Note: This is unused currently, to maintain the invariant that the
+ * file size is always a multiple of the page size.
+ *
+ * (This function should probably be deleted, or the invariant
+ * relaxed)
+ *
* Return: Success: non-negative
* Failure: negative
*