[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.
This commit is contained in:
Mohamad Chaarawi 2014-10-03 10:51:50 -05:00
parent 26400c392b
commit ca6ffd477d

View File

@ -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;
}