summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod_attr.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-12-10 14:23:17 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-12-10 14:23:17 (GMT)
commit6c6905544bc5962194c26cbc4e590eafb4ce98ed (patch)
tree8ed5d770e44cc0cbaab2e1034e0485cf0d78e1c3 /src/H5VLiod_attr.c
parentb4c6701abdf2f32a6be111f77e5ae115a180c870 (diff)
downloadhdf5-6c6905544bc5962194c26cbc4e590eafb4ce98ed.zip
hdf5-6c6905544bc5962194c26cbc4e590eafb4ce98ed.tar.gz
hdf5-6c6905544bc5962194c26cbc4e590eafb4ce98ed.tar.bz2
[svn-r24520] - fix bug in file open
- update latest M6.2 demo code from Ruth and add a minor fix - resolve conflicts with Jerome's changes in H5VLiod_common.h
Diffstat (limited to 'src/H5VLiod_attr.c')
-rw-r--r--src/H5VLiod_attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5VLiod_attr.c b/src/H5VLiod_attr.c
index 74e72f7..8380138 100644
--- a/src/H5VLiod_attr.c
+++ b/src/H5VLiod_attr.c
@@ -754,7 +754,7 @@ H5VL_iod_server_attr_exists_cb(AXE_engine_t UNUSED axe_engine,
&obj_id, &obj_oh) < 0)
HGOTO_ERROR2(H5E_SYM, H5E_NOSPACE, FAIL, "can't open object");
- if(obj_id != loc_id) {
+ if(loc_id != obj_id || IOD_OBJ_INVALID == input->loc_attrkv_id) {
/* get scratch pad of the parent */
if(iod_obj_get_scratch(obj_oh.rd_oh, rtid, &sp, &sp_cs, NULL) < 0)
HGOTO_ERROR2(H5E_ATTR, H5E_CANTINIT, FAIL, "can't get scratch pad for object");