X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-ovsdb.c;h=b2ab4c6005638b24237aa1b84723dd8a009babf5;hb=2da0385d1f57fe00977d2e58022b3f9a6604192e;hp=48a5007f36dc5f018a56073b29e69619088b300d;hpb=02dd3123a0e312f1d33403e744af52dd6096f12d;p=openvswitch diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c index 48a5007f..b2ab4c60 100644 --- a/tests/test-ovsdb.c +++ b/tests/test-ovsdb.c @@ -1735,12 +1735,7 @@ idl_set(struct ovsdb_idl *idl, char *commands, int step) } } - while ((status = ovsdb_idl_txn_commit(txn)) == TXN_INCOMPLETE) { - ovsdb_idl_run(idl); - ovsdb_idl_wait(idl); - ovsdb_idl_txn_wait(txn); - poll_block(); - } + status = ovsdb_idl_txn_commit_block(txn); printf("%03d: commit, status=%s", step, ovsdb_idl_txn_status_to_string(status)); if (increment) {