diff options
Diffstat (limited to 'examples/h5ff_client_dset.c')
-rw-r--r-- | examples/h5ff_client_dset.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/examples/h5ff_client_dset.c b/examples/h5ff_client_dset.c index a44ae60..b2e3a74 100644 --- a/examples/h5ff_client_dset.c +++ b/examples/h5ff_client_dset.c @@ -386,7 +386,7 @@ int main(int argc, char **argv) { free(buf); } - +#if 0 /* create & start transaction 2 with num_peers = my_size. This means all processes are transaction leaders, and all have to call start and finish on the transaction. */ @@ -427,12 +427,6 @@ int main(int argc, char **argv) { ret = H5TRfinish(tid2, H5P_DEFAULT, NULL, H5_EVENT_STACK_NULL); assert(0 == ret); - if(my_rank == 0) { - /* release container version 1. This is async. */ - ret = H5RCrelease(rid2, e_stack); - assert(0 == ret); - } - H5ESget_count(e_stack, &num_events); H5ESwait_all(e_stack, &status); printf("%d events in event stack. H5ESwait_all Completion status = %d\n", num_events, status); @@ -505,6 +499,14 @@ int main(int argc, char **argv) { ret = H5RCrelease(rid4, e_stack); assert(0 == ret); +#endif + + if(my_rank == 0) { + /* release container version 1. This is async. */ + ret = H5RCrelease(rid2, e_stack); + assert(0 == ret); + } + /* close objects */ ret = H5Dclose_ff(did1, e_stack); assert(ret == 0); @@ -539,14 +541,6 @@ int main(int argc, char **argv) { assert(0 == ret); ret = H5RCclose(rid2); assert(0 == ret); - ret = H5RCclose(rid3); - assert(0 == ret); - ret = H5RCclose(rid4); - assert(0 == ret); - ret = H5TRclose(tid2); - assert(0 == ret); - ret = H5TRclose(tid3); - assert(0 == ret); H5ESclear(e_stack); |