summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5C.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 6d81128..6c1b18f 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -3092,18 +3092,17 @@ H5C_resize_entry(void *thing, size_t new_size)
}
}
- /* update the pinned or protected entry list */
+ /* update the pinned and/or protected entry list */
if(entry_ptr->is_pinned) {
H5C__DLL_UPDATE_FOR_SIZE_CHANGE((cache_ptr->pel_len), \
(cache_ptr->pel_size), \
(entry_ptr->size), (new_size));
} /* end if */
- else {
- HDassert(entry_ptr->is_protected);
+ if(entry_ptr->is_protected) {
H5C__DLL_UPDATE_FOR_SIZE_CHANGE((cache_ptr->pl_len), \
(cache_ptr->pl_size), \
(entry_ptr->size), (new_size));
- } /* end else */
+ } /* end if */
/* update the hash table */
H5C__UPDATE_INDEX_FOR_SIZE_CHANGE((cache_ptr), (entry_ptr->size),\