summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2022-02-12 04:34:16 (GMT)
committerGitHub <noreply@github.com>2022-02-12 04:34:16 (GMT)
commit97b8fad8edbfa4c4c482a0b43f86885914c19fa5 (patch)
tree0fe20e4c381c83fee35bba97aad537886a67677d /src/H5AC.c
parent96cf19499b540d8fe5547690b85d18b45f4c4b85 (diff)
downloadhdf5-97b8fad8edbfa4c4c482a0b43f86885914c19fa5.zip
hdf5-97b8fad8edbfa4c4c482a0b43f86885914c19fa5.tar.gz
hdf5-97b8fad8edbfa4c4c482a0b43f86885914c19fa5.tar.bz2
Revert "Fix metadata cache bug when resizing a pinned/protected entry (#1358)" (#1437)
This reverts commit 01092658a3095c31d7dc1ed1beebbd965095c244.
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 7272c01..47d3a65 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -1440,6 +1440,10 @@ H5AC_resize_entry(void *thing, size_t new_size)
cache_ptr = entry_ptr->cache_ptr;
HDassert(cache_ptr);
+ /* Resize the entry */
+ if (H5C_resize_entry(thing, new_size) < 0)
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTRESIZE, FAIL, "can't resize entry")
+
#ifdef H5_HAVE_PARALLEL
{
H5AC_aux_t *aux_ptr;
@@ -1451,10 +1455,6 @@ H5AC_resize_entry(void *thing, size_t new_size)
}
#endif /* H5_HAVE_PARALLEL */
- /* Resize the entry */
- if (H5C_resize_entry(thing, new_size) < 0)
- HGOTO_ERROR(H5E_CACHE, H5E_CANTRESIZE, FAIL, "can't resize entry")
-
done:
/* If currently logging, generate a message */
if (cache_ptr != NULL && cache_ptr->log_info != NULL)