summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-10-03 15:51:50 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-10-03 15:51:50 (GMT)
commitca6ffd477d11268cb4d37174417befe6506ae47b (patch)
treedfce1efa5f9679c8874e20c8c902a3e0bcbed7e1
parent26400c392b45a86e385905fd377e34603a31377a (diff)
downloadhdf5-ca6ffd477d11268cb4d37174417befe6506ae47b.zip
hdf5-ca6ffd477d11268cb4d37174417befe6506ae47b.tar.gz
hdf5-ca6ffd477d11268cb4d37174417befe6506ae47b.tar.bz2
[svn-r25661] Update the default setting for the memb_addr array when use passes NULL to equally divide all the address space between all the members.
Before there was one chunk of the address space not being used. tested h5committest, and multi vfd make check on jam.
-rw-r--r--src/H5FDmulti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index 4a62bd8..38097c8 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -491,7 +491,7 @@ H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map,
}
if (!memb_addr) {
for (mt=H5FD_MEM_DEFAULT; mt<H5FD_MEM_NTYPES; mt=(H5FD_mem_t)(mt+1))
- _memb_addr[mt] = (hsize_t)(mt ? (mt - 1) : 0) * (HADDR_MAX / H5FD_MEM_NTYPES);
+ _memb_addr[mt] = (hsize_t)(mt ? (mt - 1) : 0) * (HADDR_MAX / (H5FD_MEM_NTYPES-1));
memb_addr = _memb_addr;
}