summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod_map.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-10-01 22:24:14 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-10-01 22:24:14 (GMT)
commit7efc3ee024ddb3381725d7d0f7fe7ff7d63f0337 (patch)
tree4f514bc7ff2a302eec9b25d9512692a71a86dfd8 /src/H5VLiod_map.c
parentbca210eb568406f3fddbc0a7089dca84817ce7a6 (diff)
downloadhdf5-7efc3ee024ddb3381725d7d0f7fe7ff7d63f0337.zip
hdf5-7efc3ee024ddb3381725d7d0f7fe7ff7d63f0337.tar.gz
hdf5-7efc3ee024ddb3381725d7d0f7fe7ff7d63f0337.tar.bz2
[svn-r24246] - add H5Oopen_by_token implementation
- update map example to show how is it done: - need to update other examples
Diffstat (limited to 'src/H5VLiod_map.c')
-rw-r--r--src/H5VLiod_map.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/H5VLiod_map.c b/src/H5VLiod_map.c
index 2992c31..95b7e26 100644
--- a/src/H5VLiod_map.c
+++ b/src/H5VLiod_map.c
@@ -254,7 +254,7 @@ H5VL_iod_server_map_open_cb(AXE_engine_t UNUSED axe_engine,
}
/* open the metadata scratch pad */
- if (iod_obj_open_write(coh, sp[0], NULL /*hints*/, &mdkv_oh, NULL) < 0)
+ if (iod_obj_open_read(coh, sp[0], NULL /*hints*/, &mdkv_oh, NULL) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "can't open scratch pad");
/* MSC - retrieve metadata - need IOD*/
@@ -273,16 +273,17 @@ H5VL_iod_server_map_open_cb(AXE_engine_t UNUSED axe_engine,
if(iod_obj_close(mdkv_oh, NULL, NULL))
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't close meta data KV handle");
+ /* MSC - fake stuff for now*/
+ map_oh.cookie = 1;
+ output.keytype_id = H5Tcopy(H5T_NATIVE_INT);
+ output.valtype_id = H5Tcopy(H5T_NATIVE_INT);
+ output.mcpl_id = H5P_GROUP_CREATE_DEFAULT;
+
output.iod_id = map_id;
output.mdkv_id = sp[0];
output.attrkv_id = sp[1];
output.iod_oh = map_oh;
- /* MSC - fake datatypes for now*/
- output.keytype_id = H5Tcopy(H5T_NATIVE_INT);
- output.valtype_id = H5Tcopy(H5T_NATIVE_INT);
- output.mcpl_id = H5P_GROUP_CREATE_DEFAULT;
-
#if H5VL_IOD_DEBUG
fprintf(stderr, "Done with map open, sending response to client\n");
#endif