diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-11-12 23:02:00 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-11-12 23:02:00 (GMT) |
commit | 680262645fc936e17571ac43e905b678bc799bb6 (patch) | |
tree | f6eaa5077ddf4722757f599c8c1a9ae70d8d887c /src/H5FPserver.c | |
parent | 2668d2e5a3c34631918ff6ea1945c514e2df083b (diff) | |
download | hdf5-680262645fc936e17571ac43e905b678bc799bb6.zip hdf5-680262645fc936e17571ac43e905b678bc799bb6.tar.gz hdf5-680262645fc936e17571ac43e905b678bc799bb6.tar.bz2 |
[svn-r7838] Purpose:
Bug fix and File Addition
Description:
- Fixed when reading from the file with FPHDF5. It wasn't recording
how many bytes it read.
- Added Arithmetic Transformation modules. These haven't been
included into the HDF5 build. I just added them here for future
porposes...
Solution:
Added a call to "MPI_Get_count" to get the number of bytes read.
Platforms tested:
Linux (w/ FPHDF5)
AIX (w/ and w/o FPHDF5)
FPHDF5-specific fixes...No need for H5committest
Misc. update:
Diffstat (limited to 'src/H5FPserver.c')
-rw-r--r-- | src/H5FPserver.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/H5FPserver.c b/src/H5FPserver.c index f612b13..25a456b 100644 --- a/src/H5FPserver.c +++ b/src/H5FPserver.c @@ -146,11 +146,10 @@ static H5FP_file_info *H5FP_new_file_info_node(unsigned file_id); static H5FP_file_info *H5FP_find_file_info(unsigned file_id); /* local file modification structure handling functions */ -static H5FP_mdata_mod *H5FP_new_file_mod_node(unsigned rank, - H5FD_mem_t mem_type, - haddr_t addr, - unsigned md_size, - char *metadata); +static H5FP_mdata_mod *H5FP_new_file_mod_node(H5FD_mem_t mem_type, + haddr_t addr, + unsigned md_size, + char *metadata); static herr_t H5FP_free_mod_node(H5FP_mdata_mod *info); /* local request handling functions */ @@ -499,8 +498,7 @@ H5FP_free_mod_node(H5FP_mdata_mod *info) * Modifications: */ static H5FP_mdata_mod * -H5FP_new_file_mod_node(unsigned UNUSED rank, H5FD_mem_t mem_type, - haddr_t addr, unsigned md_size, char *metadata) +H5FP_new_file_mod_node(H5FD_mem_t mem_type, haddr_t addr, unsigned md_size, char *metadata) { H5FP_mdata_mod *ret_value = NULL; @@ -558,7 +556,7 @@ H5FP_add_file_mod_to_list(H5FP_file_info *info, H5FD_mem_t mem_type, HGOTO_DONE(SUCCEED); } - if ((fm = H5FP_new_file_mod_node(rank, mem_type, addr, md_size, metadata)) != NULL) { + if ((fm = H5FP_new_file_mod_node(mem_type, addr, md_size, metadata)) != NULL) { if (!H5TB_dins(info->mod_tree, (void *)fm, NULL)) HGOTO_ERROR(H5E_FPHDF5, H5E_CANTINSERT, FAIL, "can't insert modification into tree"); @@ -1283,7 +1281,7 @@ H5FP_sap_handle_read_request(H5FP_request_t *req) r.addr = 0; r.status = H5FP_STATUS_MDATA_NOT_CACHED; - if ((info = H5FP_find_file_info(req->file_id)) != NULL) { + if ((info = H5FP_find_file_info(req->file_id)) != NULL && info->num_mods) { H5FP_mdata_mod mod; /* Used to find the correct modification */ H5TB_NODE *node; |