From decf1830efac293971cf7119c15fc1c9993263e9 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 24 Jul 2007 16:33:09 -0500 Subject: [svn-r14009] Description: Drop use of "use the latest format" flag when encoding SOHM-stored shared messages and just change the version based solely on the type of shared message. Tested on: FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Mac OS X/32 10.4.10 (amazon) Solaris/32 2.10 (linew) --- src/H5Oshared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5Oshared.c b/src/H5Oshared.c index 9d4fd73..5739016 100644 --- a/src/H5Oshared.c +++ b/src/H5Oshared.c @@ -56,7 +56,7 @@ /* Older version, with just address of object as link for object header sharing */ #define H5O_SHARED_VERSION_2 2 -/* Newest version, which recognizes messages that are stored in the heap */ +/* Newest version, which recognizes messages that are stored in the SOHM heap */ #define H5O_SHARED_VERSION_3 3 #define H5O_SHARED_VERSION_LATEST H5O_SHARED_VERSION_3 @@ -378,7 +378,7 @@ H5O_shared_encode(const H5F_t *f, uint8_t *buf/*out*/, const H5O_shared_t *sh_me /* If this message is shared in the heap, we need to use version 3 of the * encoding and encode the SHARED_IN_HEAP flag. */ - if(sh_mesg->type == H5O_SHARE_TYPE_SOHM || H5F_USE_LATEST_FORMAT(f)) + if(sh_mesg->type == H5O_SHARE_TYPE_SOHM) version = H5O_SHARED_VERSION_LATEST; else { HDassert(sh_mesg->type == H5O_SHARE_TYPE_COMMITTED); -- cgit v0.12