diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-09-21 00:18:38 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-09-21 00:18:38 (GMT) |
commit | 63e3169e284c087c25dd076714ea6e72e81e3954 (patch) | |
tree | 2b12281f1f151c3c573707dfbeda655deab96efc /src/H5VLiod_map.c | |
parent | 6b6382770c96515e2b5f51a4289a9c8c7a185a57 (diff) | |
download | hdf5-63e3169e284c087c25dd076714ea6e72e81e3954.zip hdf5-63e3169e284c087c25dd076714ea6e72e81e3954.tar.gz hdf5-63e3169e284c087c25dd076714ea6e72e81e3954.tar.bz2 |
[svn-r24182] create IDs for metadata and attribute KVs at client instead of server to avoid the get_scratch call at the server when possible.
Diffstat (limited to 'src/H5VLiod_map.c')
-rw-r--r-- | src/H5VLiod_map.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5VLiod_map.c b/src/H5VLiod_map.c index 8b70025..7bd9141 100644 --- a/src/H5VLiod_map.c +++ b/src/H5VLiod_map.c @@ -56,6 +56,8 @@ H5VL_iod_server_map_create_cb(AXE_engine_t UNUSED axe_engine, iod_handle_t loc_handle = input->loc_oh; /* The handle for current object - could be undefined */ iod_obj_id_t loc_id = input->loc_id; /* The ID of the current location object */ iod_obj_id_t map_id = input->map_id; /* The ID of the map that needs to be created */ + iod_obj_id_t mdkv_id = input->mdkv_id; /* The ID of the metadata KV to be created */ + iod_obj_id_t attr_id = input->attrkv_id; /* The ID of the attirbute KV to be created */ const char *name = input->name; /* path relative to loc_id and loc_oh */ hid_t keytype = input->keytype_id; hid_t valtype = input->valtype_id; @@ -63,7 +65,7 @@ H5VL_iod_server_map_create_cb(AXE_engine_t UNUSED axe_engine, iod_trans_id_t rtid = input->rcxt_num; uint32_t cs_scope = input->cs_scope; iod_handle_t map_oh, cur_oh, mdkv_oh; - iod_obj_id_t cur_id, mdkv_id, attr_id; + iod_obj_id_t cur_id; char *last_comp; /* the name of the group obtained from traversal function */ hid_t mcpl_id; scratch_pad sp; @@ -99,8 +101,6 @@ H5VL_iod_server_map_create_cb(AXE_engine_t UNUSED axe_engine, /* for the process that succeeded in creating the map, create the scratch pad for it too */ if(0 == ret) { - iod_checksum_t sp_cs; - /* create the metadata KV object for the map */ if(iod_obj_create(coh, wtid, NULL, IOD_OBJ_KV, NULL, NULL, &mdkv_id, NULL) < 0) @@ -274,6 +274,8 @@ H5VL_iod_server_map_open_cb(AXE_engine_t UNUSED axe_engine, HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't close meta data KV handle"); 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*/ @@ -391,7 +393,7 @@ H5VL_iod_server_map_set_cb(AXE_engine_t UNUSED axe_engine, kv.key = key.buf; kv.value = val.buf; kv.value_len = (iod_size_t)val_size; - /* insert kv pair into scratch pad */ + /* insert kv pair into MAP */ if (iod_kv_set(iod_oh, wtid, NULL, &kv, NULL, NULL) < 0) HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't set KV pair in parent"); |