diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2020-01-15 23:27:48 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2020-01-15 23:27:48 (GMT) |
commit | 024f7ba09250110c19b070c9699cfbc0f9dc2b96 (patch) | |
tree | cc3e04bdcb987e194bb481540fca17a2e2ea914a /src/H5Rpkg.h | |
parent | eaa8ab277491173b66d3b08ad74920547073e677 (diff) | |
parent | a7648879d729c1b75bd32f3a151831e9cbfbe31c (diff) | |
download | hdf5-024f7ba09250110c19b070c9699cfbc0f9dc2b96.zip hdf5-024f7ba09250110c19b070c9699cfbc0f9dc2b96.tar.gz hdf5-024f7ba09250110c19b070c9699cfbc0f9dc2b96.tar.bz2 |
Merge pull request #2237 in HDFFV/hdf5 from ~JSOUMAGNE/hdf5:HDFFV-10992-fix to develop
* commit 'a7648879d729c1b75bd32f3a151831e9cbfbe31c':
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/H5Rpkg.h')
-rw-r--r-- | src/H5Rpkg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Rpkg.h b/src/H5Rpkg.h index 7471487..4dbc656 100644 --- a/src/H5Rpkg.h +++ b/src/H5Rpkg.h @@ -79,7 +79,7 @@ typedef struct H5R_ref_priv_t { uint32_t encode_size; /* Cached encoding size */ int8_t type; /* Reference type */ uint8_t token_size; /* Cached token size */ - char unused[18]; /* Unused */ + hbool_t app_ref; /* App ref on loc_id */ } H5R_ref_priv_t; /*****************************/ @@ -95,7 +95,7 @@ H5_DLL herr_t H5R__create_region(const H5VL_token_t *obj_token, size_t token_s H5_DLL herr_t H5R__create_attr(const H5VL_token_t *obj_token, size_t token_size, const char *attr_name, H5R_ref_priv_t *ref); H5_DLL herr_t H5R__destroy(H5R_ref_priv_t *ref); -H5_DLL herr_t H5R__set_loc_id(H5R_ref_priv_t *ref, hid_t id, hbool_t inc_ref); +H5_DLL herr_t H5R__set_loc_id(H5R_ref_priv_t *ref, hid_t id, hbool_t inc_ref, hbool_t app_ref); H5_DLL hid_t H5R__get_loc_id(const H5R_ref_priv_t *ref); H5_DLL hid_t H5R__reopen_file(H5R_ref_priv_t *ref, hid_t fapl_id); |