diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-07-02 16:36:15 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-07-02 16:36:15 (GMT) |
commit | ddf9e4a4afc81c4be4ce38a13641ada81204b6ac (patch) | |
tree | efd184e9c0a5687a2927d655d7bd02e546fcfe5f /src/H5BTtest.c | |
parent | 4cf99e9f288d42bc756f1585c72ad584620fdec9 (diff) | |
download | hdf5-ddf9e4a4afc81c4be4ce38a13641ada81204b6ac.zip hdf5-ddf9e4a4afc81c4be4ce38a13641ada81204b6ac.tar.gz hdf5-ddf9e4a4afc81c4be4ce38a13641ada81204b6ac.tar.bz2 |
[svn-r11014] Purpose:
Code cleanup
Description:
Refactor metadata cache to merge "dirtied" flag in with other flags for
H5AC_unprotect and H5C_unprotect.
Platforms tested:
FreeBSD 4.11 (sleipnir)
h5committest
Diffstat (limited to 'src/H5BTtest.c')
-rw-r--r-- | src/H5BTtest.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/H5BTtest.c b/src/H5BTtest.c index 61d25b9..cb94ad2 100644 --- a/src/H5BTtest.c +++ b/src/H5BTtest.c @@ -56,7 +56,6 @@ herr_t H5BT_get_max_info(H5F_t *f, hid_t dxpl_id, haddr_t addr, hsize_t *size, uint32_t *count, hbool_t *valid) { - hbool_t bt_dirtied = FALSE; H5BT_t *bt=NULL; /* Pointer to the block tracker info */ herr_t ret_value = SUCCEED; @@ -80,7 +79,7 @@ H5BT_get_max_info(H5F_t *f, hid_t dxpl_id, haddr_t addr, hsize_t *size, done: /* Release the block tracker info */ - if (bt && H5AC_unprotect(f, dxpl_id, H5AC_BLTR, addr, bt, bt_dirtied, H5AC__NO_FLAGS_SET) < 0) + if (bt && H5AC_unprotect(f, dxpl_id, H5AC_BLTR, addr, bt, H5AC__NO_FLAGS_SET) < 0) HDONE_ERROR(H5E_BLKTRK, H5E_CANTUNPROTECT, FAIL, "unable to release block tracker info") FUNC_LEAVE_NOAPI(ret_value) @@ -112,7 +111,6 @@ herr_t H5BT_get_min_info(H5F_t *f, hid_t dxpl_id, haddr_t addr, hsize_t *size, uint32_t *count, hbool_t *valid) { - hbool_t bt_dirtied = FALSE; H5BT_t *bt=NULL; /* Pointer to the block tracker info */ herr_t ret_value = SUCCEED; @@ -136,7 +134,7 @@ H5BT_get_min_info(H5F_t *f, hid_t dxpl_id, haddr_t addr, hsize_t *size, done: /* Release the block tracker info */ - if (bt && H5AC_unprotect(f, dxpl_id, H5AC_BLTR, addr, bt, bt_dirtied, H5AC__NO_FLAGS_SET) < 0) + if (bt && H5AC_unprotect(f, dxpl_id, H5AC_BLTR, addr, bt, H5AC__NO_FLAGS_SET) < 0) HDONE_ERROR(H5E_BLKTRK, H5E_CANTUNPROTECT, FAIL, "unable to release block tracker info") FUNC_LEAVE_NOAPI(ret_value) |