summaryrefslogtreecommitdiff
path: root/vswitchd/ovs-brcompatd.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-03-03 12:55:39 -0800
committerBen Pfaff <blp@nicira.com>2010-03-03 12:55:39 -0800
commitaf96ccd24690553a0f8e2dbe9ee72530f18629c6 (patch)
tree9297f0870cce2d416dd91192b843786e708fd79d /vswitchd/ovs-brcompatd.c
parent58bd8cceb1d03065a580ac6663ae464435a1dd04 (diff)
downloadopenvswitch-af96ccd24690553a0f8e2dbe9ee72530f18629c6.tar.gz
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 'vswitchd/ovs-brcompatd.c')
-rw-r--r--vswitchd/ovs-brcompatd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c
index dd7ea42f7..aa90c3940 100644
--- a/vswitchd/ovs-brcompatd.c
+++ b/vswitchd/ovs-brcompatd.c
@@ -1222,12 +1222,7 @@ main(int argc, char *argv[])
poll_timer_wait(prune_timeout);
}
- 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);
switch (status) {
case TXN_INCOMPLETE: