summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod_attr.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-07-09 15:16:46 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-07-09 15:16:46 (GMT)
commit46b5d073b56090829f6f6519553b4a427703e129 (patch)
tree78087e067c6b941a1cd3e4c5e21f3a77d5e8f896 /src/H5VLiod_attr.c
parente74f49bdc142517aab4ab2e6823edef186895971 (diff)
downloadhdf5-46b5d073b56090829f6f6519553b4a427703e129.zip
hdf5-46b5d073b56090829f6f6519553b4a427703e129.tar.gz
hdf5-46b5d073b56090829f6f6519553b4a427703e129.tar.bz2
[svn-r23876] - Add functionality to generate IOD hyperslabs for HDF5 dataspace selections
- Fix some bugs & valgrind warnings
Diffstat (limited to 'src/H5VLiod_attr.c')
-rw-r--r--src/H5VLiod_attr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/H5VLiod_attr.c b/src/H5VLiod_attr.c
index d7863dd..dda7b6a 100644
--- a/src/H5VLiod_attr.c
+++ b/src/H5VLiod_attr.c
@@ -286,9 +286,12 @@ H5VL_iod_server_attr_open_cb(AXE_engine_t UNUSED axe_engine,
if(iod_obj_get_scratch(cur_oh, IOD_TID_UNKNOWN, &sp, NULL, NULL) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "can't get scratch pad for object");
+ /* MSC - Dont do this check until we have a real IOD */
+#if 0
/* if attribute KV does not exist, return error*/
if(IOD_ID_UNDEFINED == sp.attr_id)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "Object has no attributes");
+#endif
/* open the attribute KV in scratch pad */
if (iod_obj_open_write(coh, sp.attr_id, NULL /*hints*/, &attr_kv_oh, NULL) < 0)
@@ -656,11 +659,14 @@ H5VL_iod_server_attr_exists_cb(AXE_engine_t UNUSED axe_engine,
iod_obj_close(cur_oh, NULL, NULL);
}
+ /* MSC - Dont do this check until we have a real IOD */
+#if 0
/* if attribute KV does not exist, return false*/
if(IOD_ID_UNDEFINED == sp.attr_id) {
ret = FALSE;
HGOTO_DONE(SUCCEED);
}
+#endif
/* open the attribute KV in scratch pad */
if (iod_obj_open_write(coh, sp.attr_id, NULL /*hints*/, &attr_kv_oh, NULL) < 0)
@@ -757,9 +763,12 @@ H5VL_iod_server_attr_rename_cb(AXE_engine_t UNUSED axe_engine,
iod_obj_close(cur_oh, NULL, NULL);
}
+ /* MSC - Dont do this check until we have a real IOD */
+#if 0
/* if attribute KV does not exist, return error*/
if(IOD_ID_UNDEFINED == sp.attr_id)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "Object has no attributes");
+#endif
/* open the attribute KV in scratch pad */
if (iod_obj_open_write(coh, sp.attr_id, NULL /*hints*/, &attr_kv_oh, NULL) < 0)
@@ -865,9 +874,12 @@ H5VL_iod_server_attr_remove_cb(AXE_engine_t UNUSED axe_engine,
iod_obj_close(cur_oh, NULL, NULL);
}
+ /* MSC - Dont do this check until we have a real IOD */
+#if 0
/* if attribute KV does not exist, return error*/
if(IOD_ID_UNDEFINED == sp.attr_id)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "Object has no attributes");
+#endif
/* open the attribute KV in scratch pad */
if (iod_obj_open_write(coh, sp.attr_id, NULL /*hints*/, &attr_kv_oh, NULL) < 0)