diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2021-01-27 23:48:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 23:48:31 (GMT) |
commit | 98a27f1fe4f0cb96ce7fdeee2e95079ae19db5cd (patch) | |
tree | 2e0dd2c18e2b05870ea50835e8c7997935ac95a3 /src/H5Tdeprec.c | |
parent | df1d5505c15e27eca9236952bbfef94a6dc8f20d (diff) | |
download | hdf5-98a27f1fe4f0cb96ce7fdeee2e95079ae19db5cd.zip hdf5-98a27f1fe4f0cb96ce7fdeee2e95079ae19db5cd.tar.gz hdf5-98a27f1fe4f0cb96ce7fdeee2e95079ae19db5cd.tar.bz2 |
Merge PR #274 to 1.12 Branch (#283)
* Improve performance of multiple calls to H5Sget_select_elem_pointlist (#270)
* Cache the pointer to the next point to process after the last call to
H5S__get_select_elem_pointlist. This allows the normal process of
iterating over the points in batches to be much more efficient, as the
library does not need to traverse the entirety of the preceding points
every time the funciton is re-entered.
* Update RELEASE.txt for point selection iteration performance fix.
* Fix problems with vlens and refs inside compound using H5VLget_file_type() (#274)
* Fixed problems with vlens and refs inside compound using H5VLget_file_type()
* Fix date in RELEASE.txt
* Add assertions
* Move some manipulation of H5VL_object_t struct fields into the H5VL
package.
* Add fix that was mistakenly left off merge commit.
* Update src/H5Tprivate.h
Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
Diffstat (limited to 'src/H5Tdeprec.c')
-rw-r--r-- | src/H5Tdeprec.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/H5Tdeprec.c b/src/H5Tdeprec.c index 89de9e1..fa14151 100644 --- a/src/H5Tdeprec.c +++ b/src/H5Tdeprec.c @@ -134,11 +134,8 @@ H5Tcommit1(hid_t loc_id, const char *name, hid_t type_id) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to commit datatype") /* Set up VOL object */ - if (NULL == (new_obj = H5FL_CALLOC(H5VL_object_t))) - HGOTO_ERROR(H5E_VOL, H5E_NOSPACE, FAIL, "can't allocate top object structure") - new_obj->connector = vol_obj->connector; - new_obj->connector->nrefs++; - new_obj->data = data; + if (NULL == (new_obj = H5VL_create_object(data, vol_obj->connector))) + HGOTO_ERROR(H5E_DATATYPE, H5E_CANTALLOC, FAIL, "can't create VOL object for committed datatype") /* Set the committed type object to the VOL connector pointer in the H5T_t struct */ dt->vol_obj = new_obj; |