From 132dd66269db2b8e3e158fdbdc3bae80c989b993 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Tue, 2 Mar 2021 05:42:17 -0800 Subject: Fixes a bug from when the hlog code was removed --- src/H5FDvfd_swmr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v0.12