summaryrefslogtreecommitdiffstats
path: root/src/H5FDvfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-01-30 23:22:01 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-01-30 23:22:01 (GMT)
commit590c51b68c61e5e35097523f96d3d9b0bb43a083 (patch)
treed34f7c7a3a34c7fe8461190323e115ecf156f2af /src/H5FDvfd_swmr.c
parent2e15f48d7893bda94358cac42c4f57cf7b1a9aa9 (diff)
downloadhdf5-590c51b68c61e5e35097523f96d3d9b0bb43a083.zip
hdf5-590c51b68c61e5e35097523f96d3d9b0bb43a083.tar.gz
hdf5-590c51b68c61e5e35097523f96d3d9b0bb43a083.tar.bz2
Remove some dead code and out-of-date comments.
Diffstat (limited to 'src/H5FDvfd_swmr.c')
-rw-r--r--src/H5FDvfd_swmr.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c
index 6df887a..7b2e52b 100644
--- a/src/H5FDvfd_swmr.c
+++ b/src/H5FDvfd_swmr.c
@@ -1224,19 +1224,6 @@ H5FD__vfd_swmr_load_hdr_and_idx(H5FD_t *_file, hbool_t open)
HGOTO_ERROR(H5E_VFL, H5E_BADVALUE, FAIL,
"could not re-read header");
}
-
-#if 0
- /* Error when tick_num in header is more than one greater
- * than in the index
- *
- * It's ok if this happens, we'll catch it and retry
- * until timeout. --dyoung
- */
- if (md_header.tick_num > (md_index.tick_num + 1)) {
- HGOTO_ERROR(H5E_VFL, H5E_BADVALUE, FAIL,
- "tick number mis-match in header and index");
- }
-#endif
}
/* Exhaust all retries for loading and decoding the md file header
@@ -1407,11 +1394,6 @@ H5FD__vfd_swmr_index_deserialize(const H5FD_t *_file,
"memory allocation failed for index's on disk image buffer");
}
- /* TBD On each try, seek to the header and read it. This
- * entails merging H5FD__vfd_swmr_header_deserialize with this
- * function (H5FD__vfd_swmr_index_deserialize).
- */
-
/* We may seek past EOF. That's ok, the read(2) will catch that. */
if (lseek(file->md_fd, (HDoff_t)md_header->index_offset, SEEK_SET) < 0){
HGOTO_ERROR(H5E_VFL, H5E_SEEKERROR, FAIL,