diff options
author | David Young <dyoung@hdfgroup.org> | 2019-10-18 19:52:59 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-10-18 19:52:59 (GMT) |
commit | e100cbdd3c51a090a4788c120fe414a134274482 (patch) | |
tree | 44bb6b41bb955baee8acf7edeac41c6f7efdae98 /src/H5PB.c | |
parent | 90a602634e0f283dcc100dfcb6e98977d5d74981 (diff) | |
download | hdf5-e100cbdd3c51a090a4788c120fe414a134274482.zip hdf5-e100cbdd3c51a090a4788c120fe414a134274482.tar.gz hdf5-e100cbdd3c51a090a4788c120fe414a134274482.tar.bz2 |
Ntheever skip a read (skip_read is always false). This lets my demos work and
it does not seem to affect either my unit tests or testvfdswmr.sh.
Diffstat (limited to 'src/H5PB.c')
-rw-r--r-- | src/H5PB.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -49,16 +49,6 @@ /* Local Macros */ /****************/ -/* In principle, we should be able to run the page buffer with the - * accumulator. However, for whatever reason, the fheap test encounteres - * metadata corruption if the page buffer uses H5F__accum_read/write() - * for I/O. - * - * The following #define controls this. Set VFD_IO to FALSE to reproduce - * the bug. - */ -#define VFD_IO 1 - /******************/ /* Local Typedefs */ @@ -2604,6 +2594,7 @@ H5PB__load_page(H5F_t *f, H5PB_t *pb_ptr, haddr_t addr, H5FD_mem_t type, HGOTO_ERROR(H5E_PAGEBUF, H5E_CANTGET, FAIL, \ "driver get_eof request failed") +#if 0 /* It is possible that this page been allocated but not * written. Skip the read if addr > EOF. In this case, tell * H5PB__create_new_page() to zero the page image. @@ -2611,6 +2602,7 @@ H5PB__load_page(H5F_t *f, H5PB_t *pb_ptr, haddr_t addr, H5FD_mem_t type, * Don't set "skip_read = (addr >= eof);" when accumulator is used. */ skip_read = (addr >= eof); +#endif /* make space in the page buffer if necessary */ if ( ( pb_ptr->curr_pages >= pb_ptr->max_pages ) && |