diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2021-03-02 13:42:17 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2021-03-02 13:42:17 (GMT) |
commit | 132dd66269db2b8e3e158fdbdc3bae80c989b993 (patch) | |
tree | 9d87bc85cd567ab635cbbbf5ae88b24c7775337e /src | |
parent | 0455457cc743f290cc748903306b3a9ec4beb4d8 (diff) | |
download | hdf5-132dd66269db2b8e3e158fdbdc3bae80c989b993.zip hdf5-132dd66269db2b8e3e158fdbdc3bae80c989b993.tar.gz hdf5-132dd66269db2b8e3e158fdbdc3bae80c989b993.tar.bz2 |
Fixes a bug from when the hlog code was removed
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDvfd_swmr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c index 3a7a5c5..405bcd7 100644 --- a/src/H5FDvfd_swmr.c +++ b/src/H5FDvfd_swmr.c @@ -909,7 +909,8 @@ H5FD_vfd_swmr_read(H5FD_t *_file, H5FD_mem_t type, * is John's hack to allow the library to find the superblock * signature. */ - if (H5_checksum_metadata(buf, entry->length, 0) != entry->chksum) { + if (file->pb_configured && entry->length == init_size + && H5_checksum_metadata(buf, entry->length, 0) != entry->chksum) { H5FD_vfd_swmr_md_header tmp_header; if (H5FD__vfd_swmr_header_deserialize(file, &tmp_header) != TRUE) { |