summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2020-02-28 20:06:28 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:55 (GMT)
commit47e2160f22e640338452690fe07ad941e5440945 (patch)
tree911414a6de6182120a80c06f989c06b95ec3ef65 /src/H5D.c
parent4bbd9649c0334cc02fbcc10c6804ff2b5ba272f9 (diff)
downloadhdf5-47e2160f22e640338452690fe07ad941e5440945.zip
hdf5-47e2160f22e640338452690fe07ad941e5440945.tar.gz
hdf5-47e2160f22e640338452690fe07ad941e5440945.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: