summaryrefslogtreecommitdiffstats
path: root/src/H5MF.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-12-19 22:30:44 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-12-19 22:30:44 (GMT)
commit0e0abc50c8282af7c39855e58ed32e25091079c1 (patch)
treee70668fe87302a355b4590c601da6e9531283735 /src/H5MF.c
parent2b613c6c2135ae8e295515a2eac74ca45b6db433 (diff)
downloadhdf5-0e0abc50c8282af7c39855e58ed32e25091079c1.zip
hdf5-0e0abc50c8282af7c39855e58ed32e25091079c1.tar.gz
hdf5-0e0abc50c8282af7c39855e58ed32e25091079c1.tar.bz2
Fixes for issues #1 and #2 listed in John's email dated Dec 7 2018:
(1) Assertion failure in the vfd_swmr test (2) Reader error in the vfd swmr concurrent tests Also fixes for: (a) Use H5MV_alloc() to allocate space for md_pages_reserved when creating the metadata file in H5F__vfd_swmr_init() (b) Remove a multi-page (when vfd_swmr_writer is true) from the page buffer in H5MF_xfree()
Diffstat (limited to 'src/H5MF.c')
-rw-r--r--src/H5MF.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/H5MF.c b/src/H5MF.c
index f64a27a..9f415db 100644
--- a/src/H5MF.c
+++ b/src/H5MF.c
@@ -1238,6 +1238,17 @@ HDfprintf(stderr, "%s: After H5FS_sect_add()\n", FUNC);
node = NULL;
} /* end else */
+ /* Multi-page and VFD SWMR writer: remove from PB if exists there */
+ if(size > f->shared->fs_page_size && f->shared->vfd_swmr_writer) {
+
+ HDassert(f->shared->pb_ptr != NULL);
+ HDassert(H5F_USE_VFD_SWMR(f));
+ HDassert(H5F_PAGED_AGGR(f));
+
+ if(H5PB_remove_entry(f, addr) < 0)
+ HGOTO_ERROR(H5E_RESOURCE, H5E_CANTFREE, FAIL, "can't remove the page from page buffer")
+ }
+
done:
/* Reset the ring in the API context */
if(orig_ring != H5AC_RING_INV)