mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
Modification based on feedback from pull request.
This commit is contained in:
parent
e272e64e74
commit
7d124cb796
@ -2403,6 +2403,11 @@ H5AC_cork(H5F_t *f, haddr_t obj_addr, unsigned action, hbool_t *corked)
|
||||
HDassert(H5F_addr_defined(obj_addr));
|
||||
HDassert(action == H5AC__SET_CORK || action == H5AC__UNCORK || action == H5AC__GET_CORKED);
|
||||
|
||||
/* Skip the search on "tag_list" when there are no "corked" objects.
|
||||
* This is done to mitigate the slow down when closing objects.
|
||||
* Re-visit this optimization when we optimize tag info management
|
||||
* in the future.
|
||||
*/
|
||||
if(action == H5AC__GET_CORKED) {
|
||||
HDassert(corked);
|
||||
if(H5C_get_num_objs_corked(f->shared->cache) == 0) {
|
||||
|
@ -2301,7 +2301,7 @@ H5_DLL herr_t H5C_validate_resize_config(H5C_auto_size_ctl_t *config_ptr,
|
||||
unsigned int tests);
|
||||
H5_DLL herr_t H5C_ignore_tags(H5C_t *cache_ptr);
|
||||
H5_DLL hbool_t H5C_get_ignore_tags(const H5C_t *cache_ptr);
|
||||
H5_DLL hbool_t H5C_get_num_objs_corked(const H5C_t *cache_ptr);
|
||||
H5_DLL uint32_t H5C_get_num_objs_corked(const H5C_t *cache_ptr);
|
||||
H5_DLL herr_t H5C_retag_entries(H5C_t * cache_ptr, haddr_t src_tag, haddr_t dest_tag);
|
||||
H5_DLL herr_t H5C_cork(H5C_t *cache_ptr, haddr_t obj_addr, unsigned action, hbool_t *corked);
|
||||
H5_DLL herr_t H5C_get_entry_ring(const H5F_t *f, haddr_t addr, H5C_ring_t *ring);
|
||||
|
@ -185,7 +185,7 @@ H5C_get_ignore_tags(const H5C_t *cache_ptr)
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
hbool_t
|
||||
uint32_t
|
||||
H5C_get_num_objs_corked(const H5C_t *cache_ptr)
|
||||
{
|
||||
FUNC_ENTER_NOAPI_NOERR
|
||||
|
Loading…
Reference in New Issue
Block a user