summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod_attr.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-07-15 19:15:50 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-07-15 19:15:50 (GMT)
commit0cba93e0a48754e5cd769178af0cf325fa670878 (patch)
tree487d385964c2e3763d02945efc3589275022ad8e /src/H5VLiod_attr.c
parentf2a2ef446e0503d232f24270e78c91e7ba40fdfc (diff)
downloadhdf5-0cba93e0a48754e5cd769178af0cf325fa670878.zip
hdf5-0cba93e0a48754e5cd769178af0cf325fa670878.tar.gz
hdf5-0cba93e0a48754e5cd769178af0cf325fa670878.tar.bz2
[svn-r23901] - update creation of the attribute KV to be when the object is created.
Diffstat (limited to 'src/H5VLiod_attr.c')
-rw-r--r--src/H5VLiod_attr.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/H5VLiod_attr.c b/src/H5VLiod_attr.c
index dda7b6a..44229df 100644
--- a/src/H5VLiod_attr.c
+++ b/src/H5VLiod_attr.c
@@ -170,18 +170,6 @@ H5VL_iod_server_attr_create_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");
- /* if attribute KV does not exist, create it */
- if(IOD_ID_UNDEFINED == sp.attr_id) {
- /* create the attribute KV object for the parent */
- if(iod_obj_create(coh, IOD_TID_UNKNOWN, NULL, IOD_OBJ_KV,
- NULL, NULL, &sp.attr_id, NULL)<0)
- HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't create Attr KV");
-
- /* set scratch pad in attribute */
- if (iod_obj_set_scratch(cur_oh, IOD_TID_UNKNOWN, &sp, NULL, NULL) < 0)
- HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't set scratch pad");
- }
-
/* open the attribute KV in scratch pad */
if (iod_obj_open_write(coh, sp.attr_id, NULL /*hints*/, &attr_kv_oh, NULL) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "can't open scratch pad");