summaryrefslogtreecommitdiffstats
path: root/src/H5Fvfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-26 22:24:42 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-26 22:24:42 (GMT)
commit4b70e13e14a9fa13696fbcf2d8a9bb329db90c57 (patch)
treebf8ee8734ff070738e66757a69ca8f5a4026bc37 /src/H5Fvfd_swmr.c
parentd859bc4ba7ff2336a5ef33d94a2ef617a202613b (diff)
downloadhdf5-4b70e13e14a9fa13696fbcf2d8a9bb329db90c57.zip
hdf5-4b70e13e14a9fa13696fbcf2d8a9bb329db90c57.tar.gz
hdf5-4b70e13e14a9fa13696fbcf2d8a9bb329db90c57.tar.bz2
Where n is the number of page-table/shadow-index entries, avoid spending O(n^2)
time in H5PB_dest(). While we're in H5PB_dest(), mark deleted shadow-index entries as "garbage" and skip the O(n) shadow index-entries copy. Rename shadow index-entry member `moved_to_hdf5_file` to `moved_to_lower_file` while I'm in here---NFCI.
Diffstat (limited to 'src/H5Fvfd_swmr.c')
-rw-r--r--src/H5Fvfd_swmr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Fvfd_swmr.c b/src/H5Fvfd_swmr.c
index c4635a0..2dc11e8 100644
--- a/src/H5Fvfd_swmr.c
+++ b/src/H5Fvfd_swmr.c
@@ -662,7 +662,7 @@ H5F_vfd_swmr_writer__delay_write(H5F_shared_t *shared, uint64_t page,
ie_ptr = NULL;
} else {
ie_ptr = vfd_swmr_pageno_to_mdf_idx_entry(idx,
- shared->mdf_idx_entries_used, page);
+ shared->mdf_idx_entries_used, page, false);
}
if (ie_ptr == NULL)