HDFGroup / HDFGroup/hdf5

New API to get open identifers across entire library

Open
#4,094 0 comments 0 reactions 1 assignee Claimed by @mattjala View on GitHub
Component - C Library
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

**Is your feature request related to a problem? Please describe.**
`H5F_get_obj_ids` and `H5F_get_obj_count` consider transient datatypes to be objects only when using the `H5F_OBJ_ALL` flag. This makes them useful for retrieving and closing all open identifiers, but is inconsistent with library semantics.

**Describe the solution you'd like**
`H5F_get_obj_ids` and `H5F_get_obj_count` should only operate on objects that exist on files. A new API should be added to provide the "get all ids that need to be closed" functionality - either a new flag to these functions, or a new API call. Either way, this would be a breaking API change, so it won't go in until the next major release (1.15).

The work for this change is on [feature/h5f_get_obj_rework](/HDFGroup/hdf5/tree/feature/h5f_get_obj_rework). Currently, it changes the existing functions to not count transient datatypes in any case, but doesn't include any way to get all open ids.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.