summaryrefslogtreecommitdiffstats
path: root/src/H5VLiod_map.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-02-28 20:43:31 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-02-28 20:43:31 (GMT)
commitde5fdb64772179dbf692e0309932b274ea6a9038 (patch)
tree1ebf9a4ad33918e27ba8f84e1057abe2f027621d /src/H5VLiod_map.c
parent1521d020e11e4fbf761528569d0776a196f221f5 (diff)
downloadhdf5-de5fdb64772179dbf692e0309932b274ea6a9038.zip
hdf5-de5fdb64772179dbf692e0309932b274ea6a9038.tar.gz
hdf5-de5fdb64772179dbf692e0309932b274ea6a9038.tar.bz2
[svn-r24751] add replica property to dxpl and check for it when doing dataset reads and map gets.
Diffstat (limited to 'src/H5VLiod_map.c')
-rw-r--r--src/H5VLiod_map.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/H5VLiod_map.c b/src/H5VLiod_map.c
index 7e3aa0b..dc23808 100644
--- a/src/H5VLiod_map.c
+++ b/src/H5VLiod_map.c
@@ -621,6 +621,19 @@ H5VL_iod_server_map_get_cb(AXE_engine_t UNUSED axe_engine,
input->dxpl_id = H5Pcopy(H5P_DATASET_XFER_DEFAULT);
dxpl_id = input->dxpl_id;
+ {
+ iod_trans_id_t read_tid;
+
+ /* get replica ID from dxpl */
+ if(H5Pget_read_replica(dxpl_id, &read_tid) < 0)
+ HGOTO_ERROR2(H5E_PLIST, H5E_CANTGET, FAIL, "can't get replica ID from dxpl");
+
+ if(read_tid) {
+ fprintf(stderr, "Reading from replica tag %"PRIx64"\n", read_tid);
+ rtid = read_tid;
+ }
+ }
+
/* get the scope for data integrity checks for raw data */
if(H5Pget_rawdata_integrity_scope(dxpl_id, &raw_cs_scope) < 0)
HGOTO_ERROR2(H5E_PLIST, H5E_CANTGET, FAIL, "can't get scope for data integrity checks");