summaryrefslogtreecommitdiffstats
path: root/src/H5FDvfd_swmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FDvfd_swmr.c')
-rw-r--r--src/H5FDvfd_swmr.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c
index fa4c2c8..5565d93 100644
--- a/src/H5FDvfd_swmr.c
+++ b/src/H5FDvfd_swmr.c
@@ -678,20 +678,10 @@ H5FD_vfd_swmr_read(H5FD_t *_file, H5FD_mem_t type,
HDassert(file && file->pub.cls);
HDassert(buf);
-#if 0 /* JRM */
- /* index should be loaded only at file open, and at end of tick -- JRM */
-
- /* Try loading and decoding the header and index in the metadata file */
- if(H5FD__vfd_swmr_load_hdr_and_idx(_file, FALSE) < 0)
- HGOTO_ERROR(H5E_VFL, H5E_CANTGET, FAIL, \
- "unable to load/decode the md file header/index")
-#endif /* JRM */
-
index = file->md_index.entries;
num_entries = (int)file->md_index.num_entries;
fs_page_size = file->md_header.fs_page_size;
-#if 1 /* JRM */
/* Try finding the addr from the index */
cmp = -1;
lo = 0;
@@ -735,32 +725,6 @@ H5FD_vfd_swmr_read(H5FD_t *_file, H5FD_mem_t type,
target_page, size);
}
#endif /* JRM */
-#else /* JRM */
- {
- target_page = (addr / fs_page_size);
- cmp = -1;
- my_idx = 0;
-
- HDassert(target_page * fs_page_size <= addr);
- HDassert(addr < (target_page + 1) * fs_page_size);
-
- while ( ( cmp == -1 ) && ( my_idx < num_entries ) ) {
-
- HDassert( ( my_idx == 0 ) ||
- ( index[my_idx-1].hdf5_page_offset <
- index[my_idx].hdf5_page_offset ) );
-
- if ( index[my_idx].hdf5_page_offset == (uint64_t)target_page ) {
-
- cmp = 0;
-
- } else {
-
- my_idx++;
- }
- }
- }
-#endif /* JRM */
/* Found in index, read from the metadata file */
#if 0 /* JRM */