summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod_util.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-03-26 16:27:27 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-03-26 16:27:27 (GMT)
commiteff45c0fa7de2f8dc47d3448af9ff9a48fba86b3 (patch)
tree85ed9f262ea88263337acf27e1b5037dec1c114f /src/H5VLiod_util.c
parent63d72a91187c546a4b8c3c1a636b85a764ae3418 (diff)
downloadhdf5-eff45c0fa7de2f8dc47d3448af9ff9a48fba86b3.zip
hdf5-eff45c0fa7de2f8dc47d3448af9ff9a48fba86b3.tar.gz
hdf5-eff45c0fa7de2f8dc47d3448af9ff9a48fba86b3.tar.bz2
[svn-r24907] - fix corruption detection bug in metadata KVs.
- fix file close to correctly handle persist failure.
Diffstat (limited to 'src/H5VLiod_util.c')
-rw-r--r--src/H5VLiod_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5VLiod_util.c b/src/H5VLiod_util.c
index a67d7b8..2930990 100644
--- a/src/H5VLiod_util.c
+++ b/src/H5VLiod_util.c
@@ -1088,7 +1088,7 @@ H5VL_iod_get_metadata(iod_handle_t oh, iod_trans_id_t tid, H5VL_iod_metadata_t m
fprintf(stderr, "Key CS iod = %016lX computed = %016lX\n", iod_cs[0], cs[0]);
fprintf(stderr, "Value CS iod = %016lX computed = %016lX\n", iod_cs[1], cs[1]);
#endif
- if(iod_cs[0] != cs[0] && iod_cs[1] != cs[1])
+ if(iod_cs[0] != cs[0] || iod_cs[1] != cs[1])
HGOTO_ERROR2(H5E_SYM, H5E_CANTINIT, FAIL, "Corruption detected when reading metadata from IOD");
}