summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2014-11-24 17:35:44 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2016-11-29 23:42:29 (GMT)
commit4e6e796e3e4dff0a31c83c6e8642c666a1fba2f8 (patch)
tree7c4dfa68fc2548e01536b5b471e629cc4e2344a4 /src/H5D.c
parentaf174b6e765bbfd47eda9138b10976a150893698 (diff)
downloadhdf5-4e6e796e3e4dff0a31c83c6e8642c666a1fba2f8.zip
hdf5-4e6e796e3e4dff0a31c83c6e8642c666a1fba2f8.tar.gz
hdf5-4e6e796e3e4dff0a31c83c6e8642c666a1fba2f8.tar.bz2
Add H5X_can_create and H5X_CRT_READ_ON_CREATE_NAME property to H5X
Cleanup H5X
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 569248e..4516532 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -150,6 +150,10 @@ H5Dcreate2(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id,
if((ret_value = H5I_register(H5I_DATASET, dset, TRUE)) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTREGISTER, FAIL, "unable to register dataset")
+ /* Create index if told to */
+ if(H5X_can_create(ret_value, dcpl_id) < 0)
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTCREATE, FAIL, "Index can't be created on this dataset")
+
done:
if(ret_value < 0)
if(dset && H5D_close(dset) < 0)