summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorMike McGreevy <mamcgree@hdfgroup.org>2010-06-15 19:58:26 (GMT)
committerMike McGreevy <mamcgree@hdfgroup.org>2010-06-15 19:58:26 (GMT)
commit9b4163af53d4d4c463a4a3b25c220ea9454f9651 (patch)
treecb9689131fdd3cdad9eeaba77d262a465557b1a1 /testpar
parentca7fc8e96a70b06b08e1db21040056ae17a51906 (diff)
downloadhdf5-9b4163af53d4d4c463a4a3b25c220ea9454f9651.zip
hdf5-9b4163af53d4d4c463a4a3b25c220ea9454f9651.tar.gz
hdf5-9b4163af53d4d4c463a4a3b25c220ea9454f9651.tar.bz2
[svn-r19004] Purpose:
Commit metadata tagging framework. Description: This check-in contains a new framework whose goal is to apply a tag value to each new entry in the metadata cache as it is created. This tag value is such that it relates each piece of metadata to the HDF5 object that it belongs to (dataset, group, et cetera). This changeset includes the framework that applies the tags as well as a suite of tests to verify correct tag application, though does not yet make use of the tag values to flush/evict individual objects. Please refer to the "flush/evict individual objects" RFC for further discussion of these changes. Tested: jam, amani, linew (h5committest) liberty, abe, blue print
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_cache.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/testpar/t_cache.c b/testpar/t_cache.c
index 4c4acdc..476f110 100644
--- a/testpar/t_cache.c
+++ b/testpar/t_cache.c
@@ -2295,8 +2295,8 @@ insert_entry(H5C_t * cache_ptr,
(entry_ptr->ver)++;
entry_ptr->dirty = TRUE;
- result = H5AC_set(file_ptr, -1, &(types[0]), entry_ptr->base_addr,
- (void *)(&(entry_ptr->header)), flags);
+ result = H5AC_set(file_ptr, H5P_DATASET_XFER_DEFAULT, &(types[0]),
+ entry_ptr->base_addr, (void *)(&(entry_ptr->header)), flags);
if ( ( result < 0 ) ||
( entry_ptr->header.type != &(types[0]) ) ||
@@ -2734,8 +2734,9 @@ lock_entry(H5C_t * cache_ptr,
HDassert( ! (entry_ptr->locked) );
- cache_entry_ptr = (H5C_cache_entry_t *)H5AC_protect(file_ptr, -1, &(types[0]),
- entry_ptr->base_addr, NULL, H5AC_WRITE);
+ cache_entry_ptr = (H5C_cache_entry_t *)H5AC_protect(file_ptr,
+ H5P_DATASET_XFER_DEFAULT, &(types[0]), entry_ptr->base_addr,
+ NULL, H5AC_WRITE);
if ( ( cache_entry_ptr != (void *)(&(entry_ptr->header)) ) ||
( entry_ptr->header.type != &(types[0]) ) ||
@@ -3295,6 +3296,7 @@ setup_cache_for_test(hid_t * fid_ptr,
world_mpi_rank, fcn_name);
}
} else {
+ cache_ptr->ignore_tags = TRUE;
*fid_ptr = fid;
*file_ptr_ptr = file_ptr;
*cache_ptr_ptr = cache_ptr;