summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-06-27 15:51:57 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-06-27 15:51:57 (GMT)
commit645c4bcc7b467f338ca6711acfb9d41c12c05b5d (patch)
tree4a78b363981be62789a3a9fbe4ff8176fc2ff343
parenta963fa99715610ad69f718842ab8f3cb9975b1d8 (diff)
downloadhdf5-645c4bcc7b467f338ca6711acfb9d41c12c05b5d.zip
hdf5-645c4bcc7b467f338ca6711acfb9d41c12c05b5d.tar.gz
hdf5-645c4bcc7b467f338ca6711acfb9d41c12c05b5d.tar.bz2
[svn-r25366] add check if indexing is enabled around a xapl property usage.
-rw-r--r--src/H5Xdummy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Xdummy.c b/src/H5Xdummy.c
index 4e9e3f7..e853b3e 100644
--- a/src/H5Xdummy.c
+++ b/src/H5Xdummy.c
@@ -206,10 +206,11 @@ H5X_dummy_create(hid_t file_id, hid_t dataset_id, hid_t UNUSED xcpl_id,
if (FAIL == (space_id = H5Dget_space(dataset_id)))
HGOTO_ERROR(H5E_INDEX, H5E_CANTGET, NULL, "can't get dataspace from dataset");
+#ifdef H5_HAVE_INDEXING
/* Get transaction ID from xapl */
if (FAIL == H5Pget_xapl_transaction(xapl_id, &trans_id))
HGOTO_ERROR(H5E_INDEX, H5E_CANTGET, NULL, "can't get trans_id from xapl");
-
+#endif
/* Create read context from version */
if (FAIL == H5TRget_version(trans_id, &version))
HGOTO_ERROR(H5E_INDEX, H5E_CANTGET, NULL, "can't get version from transaction ID");