summaryrefslogtreecommitdiffstats
path: root/tools/src/h5dump
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-04-08 23:44:19 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-04-08 23:44:19 (GMT)
commit35c0d5cdfcfaa84f59e1c596ba1ccaeb28e3d83d (patch)
treed5d6bf5dea5abf5fbb1dc32ff5a64507ee608998 /tools/src/h5dump
parentb27a20f8c0e286ea7c2836605632ea2ee5522d03 (diff)
downloadhdf5-35c0d5cdfcfaa84f59e1c596ba1ccaeb28e3d83d.zip
hdf5-35c0d5cdfcfaa84f59e1c596ba1ccaeb28e3d83d.tar.gz
hdf5-35c0d5cdfcfaa84f59e1c596ba1ccaeb28e3d83d.tar.bz2
Fix for passthrough VOL not passing tools tests due to incorrect
optional callback queries.
Diffstat (limited to 'tools/src/h5dump')
-rw-r--r--tools/src/h5dump/h5dump_ddl.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/src/h5dump/h5dump_ddl.c b/tools/src/h5dump/h5dump_ddl.c
index e97ab7e..1df205c 100644
--- a/tools/src/h5dump/h5dump_ddl.c
+++ b/tools/src/h5dump/h5dump_ddl.c
@@ -1136,8 +1136,6 @@ dump_fcpl(hid_t fid)
unsigned sym_ik; /* symbol table B-tree internal 'K' value */
unsigned istore_ik; /* indexed storage B-tree internal 'K' value */
- void *obj = NULL;
- hid_t connector_id = H5I_INVALID_HID;
hbool_t supported = FALSE;
/* Dumping the information here only makes sense for the native
@@ -1145,10 +1143,8 @@ dump_fcpl(hid_t fid)
* use that as a proxy for "native-ness". If that isn't supported, we'll
* just return.
*/
- obj = H5VLobject(fid);
- connector_id = H5VLget_connector_id(fid);
- H5VLintrospect_opt_query(obj, connector_id, H5VL_SUBCLS_FILE, H5VL_NATIVE_FILE_GET_INFO, &supported);
- H5VLclose(connector_id);
+ H5VLquery_optional(fid, H5VL_SUBCLS_FILE, H5VL_NATIVE_FILE_GET_INFO, &supported);
+
if (!supported)
return;