summaryrefslogtreecommitdiffstats
path: root/src/H5Oshared.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Oshared.c')
-rw-r--r--src/H5Oshared.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5Oshared.c b/src/H5Oshared.c
index 4a9c2bb..ad7e594 100644
--- a/src/H5Oshared.c
+++ b/src/H5Oshared.c
@@ -623,8 +623,16 @@ H5O_shared_copy_file(H5F_t UNUSED *file_src, H5F_t *file_dst,
/* Message is always shared in heap in dest. file because the dest.
* object header doesn't quite exist yet - JML
*/
+
+ /* Set copied metadata tag */
+ H5_BEGIN_TAG(dxpl_id, H5AC__COPIED_TAG, FAIL);
+
if(H5SM_try_share(file_dst, dxpl_id, NULL, mesg_type->id, _native_dst, NULL) < 0)
HGOTO_ERROR(H5E_OHDR, H5E_WRITEERROR, FAIL, "unable to determine if message should be shared")
+
+ /* Reset metadata tag */
+ H5_END_TAG(FAIL);
+
} /* end else */
done: