summaryrefslogtreecommitdiffstats
path: root/src/H5FD.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-04-01 21:38:04 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-04-01 21:38:04 (GMT)
commit243775d9cd13602067ce7f28a6088107428d94dc (patch)
tree90163f68c8731637d6b1e5071593961519517a43 /src/H5FD.c
parent3a9829ac869c86d969fce769e0739b794220f0be (diff)
downloadhdf5-243775d9cd13602067ce7f28a6088107428d94dc.zip
hdf5-243775d9cd13602067ce7f28a6088107428d94dc.tar.gz
hdf5-243775d9cd13602067ce7f28a6088107428d94dc.tar.bz2
[svn-r6556] Purpose:
Update & Bug Fix Description: The "free" protocol was missing. Added that to the server side. When doing a "create" of a file (with no other data structures created), the freespace in the file wasn't being reclaimed. Solution: After adding the free protocol, we put the burden of running through the FD_free function on the SAP instead of each client. Platforms tested: Linux Misc. update:
Diffstat (limited to 'src/H5FD.c')
-rw-r--r--src/H5FD.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index a2bf906..36749bb 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -2083,27 +2083,6 @@ H5FD_free(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t si
assert(file->cls);
assert(type >= 0 && type < H5FD_MEM_NTYPES);
-#ifdef H5_HAVE_FPHDF5
- /*
- * When we're using the FPHDF5 driver, allocate from the SAP. If this
- * is the SAP executing this code, then skip the send to the SAP and
- * try to do the actual allocations.
- */
- if (file->driver_id == H5FD_FPHDF5 && !H5FD_fphdf5_is_sap(file)) {
- unsigned req_id;
- H5FP_status_t status;
-
- /* Send the request to the SAP */
- if (H5FP_request_free(file, type, addr, size, &req_id, &status) != SUCCEED)
- /* FIXME: Should we check the "status" variable here? */
- HGOTO_ERROR(H5E_FPHDF5, H5E_CANTFREE, FAIL,
- "server couldn't free from file");
-
- /* We've succeeded -- return the value */
- HGOTO_DONE(ret_value);
- }
-#endif /* H5_HAVE_FPHDF5 */
-
if (!H5F_addr_defined(addr) || addr>file->maxaddr ||
H5F_addr_overflow(addr, size) || addr+size>file->maxaddr)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid region");