ib: test scenario was wrong
authorPeter Somogyi <psomogyi@gamax.hu>
Thu, 29 Mar 2007 16:46:02 +0000 (18:46 +0200)
committerPeter Somogyi <psomogyi@gamax.hu>
Thu, 29 Mar 2007 16:46:02 +0000 (18:46 +0200)
it sent message in both (or all) direction at the same time. Now it measures normal pingpong.

(This used to be ctdb commit 26646aa91eb4e31efe6bacd92806ef7477b03bb7)

ctdb/ib/ibwrapper_test.c

index 2ab4c97158ba6d553be39b4027c9e38ca995e8e4..7f91075f3d9eff5368d59e53259426d83b336fec 100644 (file)
@@ -336,7 +336,7 @@ int ibwtest_receive_handler(struct ibw_conn *conn, void *buf, int n)
                                ibw_stop(tcx->ibwctx);
                                goto error;
                        }
-               } else {
+               } else if (op!=TESTOP_SEND_ID) {
                        char *buf2;
                        void *key2;