X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-ovsdb.c;h=4f44afe86979436cf0ccb193e2e2e274eb3aadfb;hb=a0a9f31ddc4fc213f9550c93478b4f03b948f606;hp=4949e3939e6181bee6d3e65723811038bfab1578;hpb=475281c01bd655c49f086d62d0cb4055a8f8d74b;p=openvswitch diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c index 4949e393..4f44afe8 100644 --- a/tests/test-ovsdb.c +++ b/tests/test-ovsdb.c @@ -1476,14 +1476,10 @@ idl_set(struct ovsdb_idl *idl, char *commands, int step) } } - for (;;) { + while ((status = ovsdb_idl_txn_commit(txn)) == TXN_INCOMPLETE) { ovsdb_idl_run(idl); - status = ovsdb_idl_txn_commit(txn); - if (status != TXN_INCOMPLETE) { - break; - } - ovsdb_idl_wait(idl); + ovsdb_idl_txn_wait(txn); poll_block(); } printf("%03d: commit, status=%s\n",