Skip to content

Commit 6e41069

Browse files
author
Glenn Song
committed
Move fix to H5O__chunk_deserialize
1 parent 4f76ac0 commit 6e41069

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/H5Ocache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ H5O__chunk_deserialize(H5O_t *oh, haddr_t addr, size_t chunk_size, const uint8_t
14071407
H5O_msg_class_g[id] && !(H5O_msg_class_g[id]->share_flags & H5O_SHARE_IS_SHARABLE))
14081408
HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, FAIL,
14091409
"message of unshareable class flagged as shareable");
1410-
1410+
14111411
/* Set message class for "known" messages */
14121412
mesg->type = H5O_msg_class_g[id];
14131413
}

src/H5Omessage.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,8 @@ H5O__msg_write_real(H5F_t *f, H5O_t *oh, const H5O_msg_class_t *type, unsigned m
354354
*/
355355
assert(!(mesg_flags & H5O_MSG_FLAG_DONTSHARE));
356356

357-
/* Check to see if the type is not sharable */
358-
if (!(type->share_flags & H5O_SHARE_IS_SHARABLE))
359-
HGOTO_ERROR(H5E_OHDR, H5E_BADVALUE, FAIL, "message is not sharable");
357+
/* Sanity check to see if the type is not sharable */
358+
assert(type->share_flags & H5O_SHARE_IS_SHARABLE);
360359

361360
/* Remove the old message from the SOHM index */
362361
/* (It would be more efficient to try to share the message first, then

0 commit comments

Comments
 (0)