mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r16632] Description:
Remove unnecessary 'udata' parameter from H5AC_set() and 'notify' callback (introduced with checkin that added the 'notify' callback) Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.5.6 (amazon) in debug mode Mac OS X/32 10.5.6 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
This commit is contained in:
parent
aeb65e00bd
commit
6283a0c823
@ -1274,7 +1274,7 @@ done:
|
||||
|
||||
herr_t
|
||||
H5AC_set(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr,
|
||||
void *thing, unsigned int flags, void *udata)
|
||||
void *thing, unsigned int flags)
|
||||
{
|
||||
herr_t result;
|
||||
H5AC_info_t *info;
|
||||
@ -1356,8 +1356,7 @@ H5AC_set(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr,
|
||||
type,
|
||||
addr,
|
||||
thing,
|
||||
flags,
|
||||
udata);
|
||||
flags);
|
||||
|
||||
if ( result < 0 ) {
|
||||
|
||||
|
@ -286,7 +286,7 @@ H5_DLL herr_t H5AC_create(const H5F_t *f, H5AC_cache_config_t *config_ptr);
|
||||
H5_DLL herr_t H5AC_get_entry_status(H5F_t * f, haddr_t addr,
|
||||
unsigned * status_ptr);
|
||||
H5_DLL herr_t H5AC_set(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type,
|
||||
haddr_t addr, void *thing, unsigned int flags, void *udata);
|
||||
haddr_t addr, void *thing, unsigned int flags);
|
||||
H5_DLL herr_t H5AC_pin_protected_entry(H5F_t * f, void * thing);
|
||||
H5_DLL herr_t H5AC_create_flush_dependency(H5F_t *f, void *parent_thing,
|
||||
void *child_thing);
|
||||
|
@ -257,7 +257,7 @@ H5B_create(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, void *udata,
|
||||
/*
|
||||
* Cache the new B-tree node.
|
||||
*/
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT, *addr_p, bt, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT, *addr_p, bt, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_BTREE, H5E_CANTINIT, FAIL, "can't add B-tree root node to cache")
|
||||
#ifdef H5B_DEBUG
|
||||
H5B_assert(f, dxpl_id, *addr_p, shared->type, udata);
|
||||
@ -713,7 +713,7 @@ H5B_insert(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
|
||||
HDmemcpy(H5B_NKEY(new_bt,shared,2), rt_key, shared->type->sizeof_nkey);
|
||||
|
||||
/* Insert the modified copy of the old root into the file again */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT, addr, new_bt, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT, addr, new_bt, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_BTREE, H5E_CANTFLUSH, FAIL, "unable to flush old B-tree root node")
|
||||
|
||||
#ifdef H5B_DEBUG
|
||||
|
@ -137,7 +137,7 @@ H5B2_create(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type,
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "file allocation failed for B-tree header")
|
||||
|
||||
/* Cache the new B-tree node */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT2_HDR, *addr_p, bt2, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT2_HDR, *addr_p, bt2, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_BTREE, H5E_CANTINIT, FAIL, "can't add B-tree header to cache")
|
||||
|
||||
done:
|
||||
|
@ -1964,7 +1964,7 @@ HDmemset(leaf->leaf_native, 0, shared->type->nrec_size * shared->node_info[0].ma
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "file allocation failed for B-tree leaf node")
|
||||
|
||||
/* Cache the new B-tree node */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT2_LEAF, node_ptr->addr, leaf, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT2_LEAF, node_ptr->addr, leaf, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_BTREE, H5E_CANTINIT, FAIL, "can't add B-tree leaf to cache")
|
||||
|
||||
done:
|
||||
@ -2045,7 +2045,7 @@ HDmemset(internal->node_ptrs, 0, sizeof(H5B2_node_ptr_t) * (shared->node_info[de
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "file allocation failed for B-tree internal node")
|
||||
|
||||
/* Cache the new B-tree node */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT2_INT, node_ptr->addr, internal, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_BT2_INT, node_ptr->addr, internal, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_BTREE, H5E_CANTINIT, FAIL, "can't add B-tree internal node to cache")
|
||||
|
||||
done:
|
||||
|
@ -4835,8 +4835,7 @@ H5C_insert_entry(H5F_t * f,
|
||||
const H5C_class_t * type,
|
||||
haddr_t addr,
|
||||
void * thing,
|
||||
unsigned int flags,
|
||||
void * udata)
|
||||
unsigned int flags)
|
||||
{
|
||||
herr_t result;
|
||||
hbool_t first_flush = TRUE;
|
||||
@ -5091,7 +5090,7 @@ H5C_insert_entry(H5F_t * f,
|
||||
* notice now that the entry is fully integrated into the cache.
|
||||
*/
|
||||
if(entry_ptr->type->notify &&
|
||||
(entry_ptr->type->notify)(H5C_NOTIFY_ACTION_AFTER_INSERT, entry_ptr, udata) < 0)
|
||||
(entry_ptr->type->notify)(H5C_NOTIFY_ACTION_AFTER_INSERT, entry_ptr) < 0)
|
||||
HGOTO_ERROR(H5E_CACHE, H5E_CANTNOTIFY, FAIL, "can't notify client about entry inserted into cache")
|
||||
|
||||
H5C__UPDATE_STATS_FOR_INSERTION(cache_ptr, entry_ptr)
|
||||
@ -6438,7 +6437,7 @@ H5C_protect(H5F_t * f,
|
||||
* notice now that the entry is fully integrated into the cache.
|
||||
*/
|
||||
if(entry_ptr->type->notify &&
|
||||
(entry_ptr->type->notify)(H5C_NOTIFY_ACTION_AFTER_INSERT, entry_ptr, udata2) < 0)
|
||||
(entry_ptr->type->notify)(H5C_NOTIFY_ACTION_AFTER_INSERT, entry_ptr) < 0)
|
||||
HGOTO_ERROR(H5E_CACHE, H5E_CANTNOTIFY, NULL, "can't notify client about entry inserted into cache")
|
||||
}
|
||||
|
||||
@ -11108,7 +11107,7 @@ H5C_flush_single_entry(H5F_t * f,
|
||||
*/
|
||||
if(destroy) {
|
||||
if(entry_ptr->type->notify &&
|
||||
(entry_ptr->type->notify)(H5C_NOTIFY_ACTION_BEFORE_EVICT, entry_ptr, NULL) < 0)
|
||||
(entry_ptr->type->notify)(H5C_NOTIFY_ACTION_BEFORE_EVICT, entry_ptr) < 0)
|
||||
HGOTO_ERROR(H5E_CACHE, H5E_CANTNOTIFY, FAIL, "can't notify client about entry to evict")
|
||||
} /* end if */
|
||||
|
||||
|
@ -151,8 +151,7 @@ typedef herr_t (*H5C_clear_func_t)(H5F_t *f,
|
||||
void *thing,
|
||||
hbool_t dest);
|
||||
typedef herr_t (*H5C_notify_func_t)(H5C_notify_action_t action,
|
||||
void *thing,
|
||||
void *udata);
|
||||
void *thing);
|
||||
typedef herr_t (*H5C_size_func_t)(const H5F_t *f,
|
||||
const void *thing,
|
||||
size_t *size_ptr);
|
||||
@ -1081,8 +1080,7 @@ H5_DLL herr_t H5C_insert_entry(H5F_t * f,
|
||||
const H5C_class_t * type,
|
||||
haddr_t addr,
|
||||
void * thing,
|
||||
unsigned int flags,
|
||||
void * udata);
|
||||
unsigned int flags);
|
||||
|
||||
H5_DLL herr_t H5C_mark_entries_as_clean(H5F_t * f,
|
||||
hid_t primary_dxpl_id,
|
||||
|
@ -178,7 +178,7 @@ HDfprintf(stderr, "%s: dblk_page->size = %Zu\n", FUNC, dblk_page->size);
|
||||
H5E_THROW(H5E_CANTSET, "can't set extensible array data block page elements to class's fill value")
|
||||
|
||||
/* Cache the new extensible array data block page */
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_EARRAY_DBLK_PAGE, dblk_page->addr, dblk_page, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_EARRAY_DBLK_PAGE, dblk_page->addr, dblk_page, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTINSERT, "can't add extensible array data block page to cache")
|
||||
|
||||
CATCH
|
||||
|
@ -204,7 +204,7 @@ HDfprintf(stderr, "%s: dblock->block_off = %Hu\n", FUNC, dblock->block_off);
|
||||
H5E_THROW(H5E_CANTSET, "can't set extensible array data block elements to class's fill value")
|
||||
|
||||
/* Cache the new extensible array data block */
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_EARRAY_DBLOCK, dblock_addr, dblock, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_EARRAY_DBLOCK, dblock_addr, dblock, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTINSERT, "can't add extensible array data block to cache")
|
||||
|
||||
/* Update extensible array data block statistics */
|
||||
|
@ -434,7 +434,7 @@ HDfprintf(stderr, "%s: Called\n", FUNC);
|
||||
H5E_THROW(H5E_CANTALLOC, "file allocation failed for extensible array header")
|
||||
|
||||
/* Cache the new extensible array header */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_EARRAY_HDR, hdr->addr, hdr, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_EARRAY_HDR, hdr->addr, hdr, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTINSERT, "can't add extensible array header to cache")
|
||||
|
||||
/* Set address of array header to return */
|
||||
|
@ -231,8 +231,7 @@ HDfprintf(stderr, "%s: iblock->size = %Zu\n", FUNC, iblock->size);
|
||||
} /* end if */
|
||||
|
||||
/* Cache the new extensible array index block */
|
||||
/* (pass in header, so the 'notify' callback can create flush dependency on it) */
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_EARRAY_IBLOCK, iblock_addr, iblock, H5AC__NO_FLAGS_SET, hdr) < 0)
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_EARRAY_IBLOCK, iblock_addr, iblock, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTINSERT, "can't add extensible array index block to cache")
|
||||
|
||||
/* Update extensible array index block statistics */
|
||||
|
@ -231,7 +231,7 @@ HDfprintf(stderr, "%s: sblock->block_off = %Hu\n", FUNC, sblock->block_off);
|
||||
H5V_array_fill(sblock->dblk_addrs, &tmp_addr, sizeof(haddr_t), sblock->ndblks);
|
||||
|
||||
/* Cache the new extensible array super block */
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_EARRAY_SBLOCK, sblock_addr, sblock, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_EARRAY_SBLOCK, sblock_addr, sblock, H5AC__NO_FLAGS_SET) < 0)
|
||||
H5E_THROW(H5E_CANTINSERT, "can't add extensible array super block to cache")
|
||||
|
||||
/* Update extensible array super block statistics */
|
||||
|
@ -138,7 +138,7 @@ HDfprintf(stderr, "%s: Creating free space manager, nclasses = %Zu\n", FUNC, ncl
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "file allocation failed for free space header")
|
||||
|
||||
/* Cache the new free space header (pinned) */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_FSPACE_HDR, fspace->addr, fspace, H5AC__PIN_ENTRY_FLAG, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_FSPACE_HDR, fspace->addr, fspace, H5AC__PIN_ENTRY_FLAG) < 0)
|
||||
HGOTO_ERROR(H5E_FSPACE, H5E_CANTINIT, NULL, "can't add free space header to cache")
|
||||
|
||||
/* Return free space header address to caller, if desired */
|
||||
@ -391,7 +391,7 @@ HDfprintf(stderr, "%s: Real sections to store in file\n", FUNC);
|
||||
HDassert(H5F_addr_defined(fspace->sect_addr));
|
||||
|
||||
/* Cache the free space section info */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_FSPACE_SINFO, fspace->sect_addr, fspace->sinfo, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_FSPACE_SINFO, fspace->sect_addr, fspace->sinfo, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_FSPACE, H5E_CANTINIT, FAIL, "can't add free space sections to cache")
|
||||
} /* end if */
|
||||
else {
|
||||
|
@ -389,8 +389,8 @@ H5G_dense_btree2_name_debug(FILE *stream, const H5F_t UNUSED *f, hid_t UNUSED dx
|
||||
|
||||
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5G_dense_btree2_name_debug)
|
||||
|
||||
HDfprintf(stream, "%*s%-*s {%lx, ", indent, "", fwidth, "Record:",
|
||||
nrecord->hash);
|
||||
HDfprintf(stream, "%*s%-*s {%x, ", indent, "", fwidth, "Record:",
|
||||
(unsigned)nrecord->hash);
|
||||
for(u = 0; u < H5G_DENSE_FHEAP_ID_LEN; u++)
|
||||
HDfprintf(stderr, "%02x%s", nrecord->id[u], (u < (H5G_DENSE_FHEAP_ID_LEN - 1) ? " " : "}\n"));
|
||||
|
||||
@ -579,8 +579,8 @@ H5G_dense_btree2_corder_debug(FILE *stream, const H5F_t UNUSED *f, hid_t UNUSED
|
||||
|
||||
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5G_dense_btree2_corder_debug)
|
||||
|
||||
HDfprintf(stream, "%*s%-*s {%Hu, ", indent, "", fwidth, "Record:",
|
||||
nrecord->corder);
|
||||
HDfprintf(stream, "%*s%-*s {%llu, ", indent, "", fwidth, "Record:",
|
||||
(unsigned long long)nrecord->corder);
|
||||
for(u = 0; u < H5G_DENSE_FHEAP_ID_LEN; u++)
|
||||
HDfprintf(stderr, "%02x%s", nrecord->id[u], (u < (H5G_DENSE_FHEAP_ID_LEN - 1) ? " " : "}\n"));
|
||||
|
||||
|
@ -322,7 +322,7 @@ H5G_node_create(H5F_t *f, hid_t dxpl_id, H5B_ins_t UNUSED op, void *_lt_key,
|
||||
sym->entry = H5FL_SEQ_CALLOC(H5G_entry_t, (size_t)(2 * H5F_SYM_LEAF_K(f)));
|
||||
if(NULL==sym->entry)
|
||||
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed");
|
||||
if(H5AC_set(f, dxpl_id, H5AC_SNODE, *addr_p, sym, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_SNODE, *addr_p, sym, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to cache symbol table leaf node");
|
||||
/*
|
||||
* The left and right symbols in an empty tree are both the
|
||||
|
@ -178,7 +178,7 @@ HDfprintf(stderr, "%s: direct block address = %a\n", FUNC, dblock_addr);
|
||||
} /* end else */
|
||||
|
||||
/* Cache the new fractal heap direct block */
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_FHEAP_DBLOCK, dblock_addr, dblock, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_FHEAP_DBLOCK, dblock_addr, dblock, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "can't add fractal heap direct block to cache")
|
||||
|
||||
/* Increase the allocated heap size */
|
||||
|
@ -501,7 +501,7 @@ HDfprintf(stderr, "%s: hdr->id_len = %Zu\n", FUNC, hdr->id_len);
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, HADDR_UNDEF, "file allocation failed for fractal heap header")
|
||||
|
||||
/* Cache the new fractal heap header */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_FHEAP_HDR, hdr->heap_addr, hdr, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_FHEAP_HDR, hdr->heap_addr, hdr, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, HADDR_UNDEF, "can't add fractal heap header to cache")
|
||||
|
||||
/* Set address of heap header to return */
|
||||
|
@ -1105,7 +1105,7 @@ HDfprintf(stderr, "%s: dir_rows = %u\n", FUNC, dir_rows);
|
||||
iblock->max_child = 0;
|
||||
|
||||
/* Cache the new indirect block */
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_FHEAP_IBLOCK, *addr_p, iblock, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(hdr->f, dxpl_id, H5AC_FHEAP_IBLOCK, *addr_p, iblock, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "can't add fractal heap indirect block to cache")
|
||||
|
||||
done:
|
||||
|
@ -249,7 +249,7 @@ HDmemset(heap->chunk, 0, size);
|
||||
}
|
||||
|
||||
/* Add the heap to the cache */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_GHEAP, addr, heap, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_GHEAP, addr, heap, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, HADDR_UNDEF, "unable to cache global heap collection")
|
||||
|
||||
ret_value = addr;
|
||||
|
@ -160,7 +160,7 @@ H5HL_create(H5F_t *f, hid_t dxpl_id, size_t size_hint, haddr_t *addr_p/*out*/)
|
||||
heap->freelist = NULL;
|
||||
|
||||
/* add to cache */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_LHEAP, *addr_p, heap, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_LHEAP, *addr_p, heap, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "unable to cache heap")
|
||||
|
||||
done:
|
||||
|
@ -1183,7 +1183,7 @@ H5O_create(H5F_t *f, hid_t dxpl_id, size_t size_hint, hid_t ocpl_id,
|
||||
oh->mesg[0].chunkno = 0;
|
||||
|
||||
/* Cache object header */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_OHDR, oh_addr, oh, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_OHDR, oh_addr, oh, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, FAIL, "unable to cache object header")
|
||||
|
||||
/* Set up object location */
|
||||
|
@ -719,7 +719,7 @@ H5O_copy_header_real(const H5O_loc_t *oloc_src, H5O_loc_t *oloc_dst /*out */,
|
||||
} /* end if */
|
||||
|
||||
/* Insert destination object header in cache */
|
||||
if(H5AC_set(oloc_dst->file, dxpl_id, H5AC_OHDR, oloc_dst->addr, oh_dst, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(oloc_dst->file, dxpl_id, H5AC_OHDR, oloc_dst->addr, oh_dst, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, FAIL, "unable to cache object header")
|
||||
|
||||
done:
|
||||
|
@ -211,7 +211,7 @@ H5SM_init(H5F_t *f, H5P_genplist_t * fc_plist, const H5O_loc_t *ext_loc, hid_t d
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "file allocation failed for SOHM table")
|
||||
|
||||
/* Cache the new table */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_SOHM_TABLE, table_addr, table, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_SOHM_TABLE, table_addr, table, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_CACHE, H5E_CANTINS, FAIL, "can't add SOHM table to cache")
|
||||
|
||||
/* Record the address of the master table in the file */
|
||||
@ -635,7 +635,7 @@ H5SM_create_list(H5F_t *f, H5SM_index_header_t *header, hid_t dxpl_id)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, HADDR_UNDEF, "file allocation failed for SOHM list")
|
||||
|
||||
/* Put the list into the cache */
|
||||
if(H5AC_set(f, dxpl_id, H5AC_SOHM_LIST, addr, list, H5AC__NO_FLAGS_SET, NULL) < 0)
|
||||
if(H5AC_set(f, dxpl_id, H5AC_SOHM_LIST, addr, list, H5AC__NO_FLAGS_SET) < 0)
|
||||
HGOTO_ERROR(H5E_CACHE, H5E_CANTINS, HADDR_UNDEF, "can't add SOHM list to cache")
|
||||
|
||||
/* Set return value */
|
||||
|
@ -16653,7 +16653,7 @@ check_duplicate_insert_err(void)
|
||||
|
||||
result = H5C_insert_entry(NULL, -1, -1, cache_ptr,
|
||||
&(types[0]), entry_ptr->addr,
|
||||
(void *)entry_ptr, H5C__NO_FLAGS_SET, NULL);
|
||||
(void *)entry_ptr, H5C__NO_FLAGS_SET);
|
||||
|
||||
if ( result >= 0 ) {
|
||||
|
||||
|
@ -2656,7 +2656,7 @@ insert_entry(H5C_t * cache_ptr,
|
||||
entry_ptr->is_dirty = TRUE;
|
||||
|
||||
result = H5C_insert_entry(NULL, -1, -1, cache_ptr, &(types[type]),
|
||||
entry_ptr->addr, (void *)entry_ptr, flags, NULL);
|
||||
entry_ptr->addr, (void *)entry_ptr, flags);
|
||||
|
||||
if ( ( result < 0 ) ||
|
||||
( entry_ptr->header.is_protected ) ||
|
||||
|
@ -2298,7 +2298,7 @@ insert_entry(H5C_t * cache_ptr,
|
||||
entry_ptr->dirty = TRUE;
|
||||
|
||||
result = H5AC_set(file_ptr, -1, &(types[0]), entry_ptr->base_addr,
|
||||
(void *)(&(entry_ptr->header)), flags, NULL);
|
||||
(void *)(&(entry_ptr->header)), flags);
|
||||
|
||||
if ( ( result < 0 ) ||
|
||||
( entry_ptr->header.type != &(types[0]) ) ||
|
||||
|
Loading…
Reference in New Issue
Block a user