diff options
author | Ben Pfaff <blp@nicira.com> | 2010-03-03 12:55:39 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-03-03 12:55:39 -0800 |
commit | af96ccd24690553a0f8e2dbe9ee72530f18629c6 (patch) | |
tree | 9297f0870cce2d416dd91192b843786e708fd79d /tests | |
parent | 58bd8cceb1d03065a580ac6663ae464435a1dd04 (diff) |
ovsdb-idl: New function ovsdb_idl_txn_commit_block().
This commit factors out common code from multiple callers of
ovsdb_idl_txn_commit() into a new function ovsdb_idl_txn_commit_block().
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-ovsdb.c | 7 |
1 files changed, 1 insertions, 6 deletions
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) { |