]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
dapltest: transaction test moves to cleanup stage before rdma_read processing is...
authorArlin Davis <arlin.r.davis@intel.com>
Mon, 27 Oct 2008 16:48:53 +0000 (08:48 -0800)
committerArlin Davis <arlin.r.davis@intel.com>
Mon, 27 Oct 2008 16:48:53 +0000 (08:48 -0800)
With multiple treads, the transaction server tread can move to cleanup
stage and unregister memory before the remote client process has
completed the rdma read. In lieu of a rewrite to add sync messages
at the end of transaction test phase, just add a delay before cleanup.

Signed-off-by: Arlin Davis <ardavis@ichips.intel.com>
test/dapltest/test/dapl_transaction_test.c

index 1d5beffd66d3798beb1b831e3d8885e7d884a2b8..82ee6f9a340d18d740c182b66e3916e58121ddf4 100644 (file)
@@ -1108,6 +1108,9 @@ retry:
      */
     success = DT_Transaction_Run (phead, test_ptr);
 
+    /* no sync at end of transaction run, wait before cleanup */
+    sleep(1);
+
     /*
      * Now clean up and go home
      */