summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2020-02-28 20:06:28 (GMT)
committerQuincey Koziol <koziol@koziol.gov>2020-02-28 20:06:28 (GMT)
commit38af6ee3d59a8e836f4c62dd533ddabd914c7abb (patch)
tree1b75bf94f3e047d1470e91708b16c8ddd1a3645f /src/H5D.c
parentd7eec7d6ec721ce34ccd32a75261e7711bd3ee1b (diff)
downloadhdf5-38af6ee3d59a8e836f4c62dd533ddabd914c7abb.zip
hdf5-38af6ee3d59a8e836f4c62dd533ddabd914c7abb.tar.gz
hdf5-38af6ee3d59a8e836f4c62dd533ddabd914c7abb.tar.bz2
Switch the 'get offset' operation from a dataset 'get' callback to a [native]
dataset 'optional' operation.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 178bb30..61a40df 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -598,7 +598,7 @@ H5Dget_offset(hid_t dset_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, HADDR_UNDEF, "invalid dataset identifier")
/* Get the offset */
- if(H5VL_dataset_get(vol_obj, H5VL_DATASET_GET_OFFSET, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, &ret_value) < 0)
+ if(H5VL_dataset_optional(vol_obj, H5VL_NATIVE_DATASET_GET_OFFSET, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, &ret_value) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, HADDR_UNDEF, "unable to get offset")
done: