summaryrefslogtreecommitdiffstats
path: root/src/H5AC.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-12-08 02:16:12 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-12-08 02:16:12 (GMT)
commit02879bc4b2ba161dc259bf28a71e7a99b44be0e3 (patch)
tree29ce694d2454a2df72aebd221acb7ea656ab172a /src/H5AC.c
parent16a5c7c8f309042c7bb3a40cdb4c60f5b2c587c2 (diff)
downloadhdf5-02879bc4b2ba161dc259bf28a71e7a99b44be0e3.zip
hdf5-02879bc4b2ba161dc259bf28a71e7a99b44be0e3.tar.gz
hdf5-02879bc4b2ba161dc259bf28a71e7a99b44be0e3.tar.bz2
Updated the H5FS cache code to grab the correct tag and modified
the freespace test to use dxpls that have been tagged with the H5AC__FREESPACE_TAG global tag instead of H5AC_ind_read_dxpl_id. The library code now expects the owner of the free space manager to tag it so the owner-less free space managers in the freespace tag had to be tagged with *something* to avoid cache errors.
Diffstat (limited to 'src/H5AC.c')
-rw-r--r--src/H5AC.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/H5AC.c b/src/H5AC.c
index 561f10c..f68c7a9 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -2557,6 +2557,40 @@ done:
} /* H5AC_expunge_tag_type_metadata*/
+/*------------------------------------------------------------------------------
+ * Function: H5AC_get_tag()
+ *
+ * Purpose: Get the tag for a metadata cache entry.
+ *
+ * Return: SUCCEED/FAIL
+ *
+ * Programmer: Dana Robinson
+ * Fall 2016
+ *
+ *------------------------------------------------------------------------------
+ */
+herr_t
+H5AC_get_tag(const void *thing, haddr_t *tag)
+{
+ /* Variable Declarations */
+ herr_t ret_value = SUCCEED;
+
+ /* Function Enter Macro */
+ FUNC_ENTER_NOAPI(FAIL)
+
+ /* Assertions */
+ HDassert(thing);
+ HDassert(tag);
+
+ /* Call cache level function to get the tag */
+ if(H5C_get_tag(thing, tag) < 0)
+ HGOTO_ERROR(H5E_CACHE, H5E_CANTTAG, FAIL, "Cannot get tag for metadata cache entry")
+
+done:
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* end H5AC_get_tag() */
+
+
/*-------------------------------------------------------------------------
* Function: H5AC_cork
*