diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-06-15 19:58:26 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-06-15 19:58:26 (GMT) |
commit | 9b4163af53d4d4c463a4a3b25c220ea9454f9651 (patch) | |
tree | cb9689131fdd3cdad9eeaba77d262a465557b1a1 /test/earray.c | |
parent | ca7fc8e96a70b06b08e1db21040056ae17a51906 (diff) | |
download | hdf5-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 'test/earray.c')
-rw-r--r-- | test/earray.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/earray.c b/test/earray.c index fe9e9c1..3a29948 100644 --- a/test/earray.c +++ b/test/earray.c @@ -322,6 +322,11 @@ create_file(hid_t fapl, hid_t *file, H5F_t **f) if(NULL == (*f = (H5F_t *)H5I_object(*file))) FAIL_STACK_ERROR + /* Ignore metadata tags in the file's cache */ + if(H5AC_ignore_tags(*f) < 0) { + FAIL_STACK_ERROR + } + /* Success */ return(0); @@ -449,6 +454,11 @@ reopen_file(hid_t *file, H5F_t **f, hid_t fapl, hid_t dxpl, if(NULL == (*f = (H5F_t *)H5I_object(*file))) FAIL_STACK_ERROR + /* Ignore metadata tags in the file's cache */ + if(H5AC_ignore_tags(*f) < 0) { + FAIL_STACK_ERROR + } + /* Re-open array, if given */ if(ea) { if(NULL == (*ea = H5EA_open(*f, dxpl, ea_addr, NULL))) |