From fb3cfc0a79b60ab29f6a5fff9c7d5c68b50d1144 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 2 Apr 2018 16:33:57 -0500 Subject: 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). --- src/H5MFsection.c | 16 ++++++++++++++-- 1 file 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 * -- cgit v0.12