summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2013-12-10 14:41:33 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2013-12-10 14:41:33 (GMT)
commit7c41601b3ab5f6d26a9da1d6eec9b1c9e90ce11a (patch)
tree528eb822751e72f333ba459e5b3c0818d463e86a /examples
parent6c6905544bc5962194c26cbc4e590eafb4ce98ed (diff)
downloadhdf5-7c41601b3ab5f6d26a9da1d6eec9b1c9e90ce11a.zip
hdf5-7c41601b3ab5f6d26a9da1d6eec9b1c9e90ce11a.tar.gz
hdf5-7c41601b3ab5f6d26a9da1d6eec9b1c9e90ce11a.tar.bz2
[svn-r24521] fix bug in example code.
Diffstat (limited to 'examples')
-rw-r--r--examples/h5ff_client_M6.2_demo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5ff_client_M6.2_demo.c b/examples/h5ff_client_M6.2_demo.c
index 8c4c74b..c70b193 100644
--- a/examples/h5ff_client_M6.2_demo.c
+++ b/examples/h5ff_client_M6.2_demo.c
@@ -221,13 +221,13 @@ MPI_Barrier( MPI_COMM_WORLD );
version = 2;
fprintf( stderr, "M6.2-r%d: Try to acquire read context for cv %d\n", my_rank, (int)version );
rc_id2 = H5RCacquire( file_id, &version, H5P_DEFAULT, H5_EVENT_STACK_NULL );
- while ( version != 2 ) {
+ while ( rc_id2 < 0 ) {
fprintf( stderr, "M6.2-r%d: Failed to acquire read context for cv 2 - sleep then retry\n", my_rank );
sleep( 1 );
version = 2;
rc_id2 = H5RCacquire( file_id, &version, H5P_DEFAULT, H5_EVENT_STACK_NULL );
}
- assert( rc_id2 > 0 ); assert ( version == 2 );
+ assert( rc_id2 >= 0 ); assert ( version == 2 );
fprintf( stderr, "M6.2-r%d: Acquired read context for cv 2\n", my_rank );
fprintf( stderr, "M6.2-r%d: 5th call to print container contents\n", my_rank );
print_container_contents( file_id, rc_id2, "/", my_rank ); assert( ret == 0 );