diff options
-rw-r--r-- | src/H5VLiod.c | 10 | ||||
-rw-r--r-- | src/H5VLiod_trans.c | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/H5VLiod.c b/src/H5VLiod.c index 2075250..a95f7f4 100644 --- a/src/H5VLiod.c +++ b/src/H5VLiod.c @@ -9691,6 +9691,11 @@ H5VL_iod_prefetch(void *_obj, hid_t rcxt_id, hrpl_t *replica_id, hid_t apl_id, v HGOTO_ERROR(H5E_ARGS, H5E_CANTINIT, FAIL, "not a valid object to prefetch"); } +#if H5VL_IOD_DEBUG + printf("Prefetch object %"PRIx64" at tr %"PRIu64" axe id %"PRIu64"\n", + input.iod_id, input.rcxt_num, g_axe_id); +#endif + if(H5VL__iod_create_and_forward(H5VL_PREFETCH_ID, HG_PREFETCH, obj, 1, 0, NULL, NULL, &input, replica_id, replica_id, req) < 0) @@ -9807,6 +9812,11 @@ H5VL_iod_evict(void *_obj, uint64_t c_version, hid_t apl_id, void **req) status = (int *)malloc(sizeof(int)); +#if H5VL_IOD_DEBUG + printf("Evict object %"PRIx64" at tr %"PRIu64" axe id %"PRIu64"\n", + input.iod_id, input.rcxt_num, g_axe_id); +#endif + if(H5VL__iod_create_and_forward(H5VL_EVICT_ID, HG_EVICT, obj, 1, 0, NULL, NULL, &input, status, status, req) < 0) diff --git a/src/H5VLiod_trans.c b/src/H5VLiod_trans.c index 49c3d7c..a9be9ac 100644 --- a/src/H5VLiod_trans.c +++ b/src/H5VLiod_trans.c @@ -73,7 +73,7 @@ H5VL_iod_server_rcxt_acquire_cb(AXE_engine_t UNUSED axe_engine, fprintf(stderr, "Exact Acquire Read Context %"PRIu64"\n", input->c_version); #endif if((ret = iod_trans_start(coh, &c_version, NULL, 0, IOD_TRANS_R, NULL)) < 0) { - fprintf(stderr, "%d (%s).\n", ret, strerror(-ret)); + fprintf(stderr, "can't acquire read context. %d (%s).\n", ret, strerror(-ret)); HGOTO_ERROR2(H5E_SYM, H5E_CANTINIT, FAIL, "can't acquire read context"); } acquired_version = c_version; @@ -492,8 +492,10 @@ H5VL_iod_server_trans_finish_cb(AXE_engine_t UNUSED axe_engine, step --; /* Finish the transaction */ - if(iod_trans_finish(coh, trans_num, NULL, 0, NULL) < 0) + if((ret = iod_trans_finish(coh, trans_num, NULL, 0, NULL)) < 0) { + fprintf(stderr, "can't finish transaction %d (%s).\n", ret, strerror(-ret)); HGOTO_ERROR2(H5E_SYM, H5E_CANTSET, FAIL, "can't finish transaction"); + } /* if the flag is true, acquire a read context on the finished transaction */ if(TRUE == acquire) { |