diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2020-01-18 00:42:54 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2020-01-18 00:42:54 (GMT) |
commit | dbb0ccc31db5d6a2b87ce859380043a0e7e66bd7 (patch) | |
tree | f7b16de2a91b4070b8f63cf2881ca37639b015b1 /src/H5Tref.c | |
parent | 450a862f6ad450dda38cc19a8963df6d4c8e00a6 (diff) | |
parent | 847c15691765b76beabf8f9abc89ee58a842a64e (diff) | |
download | hdf5-dbb0ccc31db5d6a2b87ce859380043a0e7e66bd7.zip hdf5-dbb0ccc31db5d6a2b87ce859380043a0e7e66bd7.tar.gz hdf5-dbb0ccc31db5d6a2b87ce859380043a0e7e66bd7.tar.bz2 |
Merge pull request #2278 in HDFFV/hdf5 from ~JSOUMAGNE/hdf5:HDFFV-10992-fix-1_12 to hdf5_1_12
* commit '847c15691765b76beabf8f9abc89ee58a842a64e':
Add test for reference shutdown issue
H5R: set app ref when incrementing ref_count on location held by reference (fix HDFFV-10992)
Diffstat (limited to 'src/H5Tref.c')
-rw-r--r-- | src/H5Tref.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Tref.c b/src/H5Tref.c index f31fecf..8288912 100644 --- a/src/H5Tref.c +++ b/src/H5Tref.c @@ -622,8 +622,9 @@ H5T__ref_mem_write(H5VL_object_t *src_file, const void *src_buf, size_t src_size if((file_id = H5F_get_file_id(src_file, H5I_FILE, FALSE)) < 0) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file or file object") - /* Attach loc ID to reference and hold reference to it */ - if(H5R__set_loc_id(dst_ref, file_id, TRUE) < 0) + /* Attach loc ID to reference and hold reference to it, this is a + * user exposed reference so set app_ref to TRUE. */ + if(H5R__set_loc_id(dst_ref, file_id, TRUE, TRUE) < 0) HGOTO_ERROR(H5E_REFERENCE, H5E_CANTSET, FAIL, "unable to attach location id to reference") } /* end if */ |