summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-06-08 00:50:46 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-06-08 00:50:46 (GMT)
commit2e6ccbfff807fa986a1a8b22ef7fe172ffa7802f (patch)
tree2fb572c2c6931fdf2c6356f096efc79b180a6831 /src/H5AC.c
parentaee288c19dbd0d2e76dd63a3edfadd5ad4f2bd1c (diff)
downloadhdf5-2e6ccbfff807fa986a1a8b22ef7fe172ffa7802f.zip
hdf5-2e6ccbfff807fa986a1a8b22ef7fe172ffa7802f.tar.gz
hdf5-2e6ccbfff807fa986a1a8b22ef7fe172ffa7802f.tar.bz2
[svn-r30053] Description:
Create iterator routine for tagged entries and refactor current routines to use it. Tested on: MacOSX/64 10.11.5 (amazon) w/serial, parallel & production (h5committest forthcoming)
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index cb587df..9ab1a14 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -2418,17 +2418,21 @@ done:
herr_t
H5AC_retag_copied_metadata(const H5F_t *f, haddr_t metadata_tag)
{
- FUNC_ENTER_NOAPI_NOINIT_NOERR
+ herr_t ret_value = SUCCEED; /* Return value */
+
+ FUNC_ENTER_NOAPI(FAIL)
/* Sanity checks */
HDassert(f);
HDassert(f->shared);
/* Call cache-level function to re-tag entries with the COPIED tag */
- H5C_retag_entries(f->shared->cache, H5AC__COPIED_TAG, metadata_tag);
+ if(H5C_retag_entries(f->shared->cache, H5AC__COPIED_TAG, metadata_tag) < 0)
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTSET, FAIL, "Can't retag metadata")
- FUNC_LEAVE_NOAPI(SUCCEED)
-} /* H5AC_retag_copied_metadata */
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* H5AC_retag_copied_metadata() */
/*------------------------------------------------------------------------------