summaryrefslogtreecommitdiffstats
path: root/examples/h5ff_client_dset.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-12-14 15:46:26 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-12-14 15:46:26 (GMT)
commitf86006449772c00f68adadd0323015f3b7e4a935 (patch)
tree99709e84843b29f83bef1142b5d692df339b9974 /examples/h5ff_client_dset.c
parent221190f1ff07be2a7924b4cf104c1b2098266266 (diff)
downloadhdf5-f86006449772c00f68adadd0323015f3b7e4a935.zip
hdf5-f86006449772c00f68adadd0323015f3b7e4a935.tar.gz
hdf5-f86006449772c00f68adadd0323015f3b7e4a935.tar.bz2
[svn-r24554] fixes to creates/deletes as transaction is aborted.
Diffstat (limited to 'examples/h5ff_client_dset.c')
-rw-r--r--examples/h5ff_client_dset.c24
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);