projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-vsctl: Fix minor memory leak in add_port().
[openvswitch]
/
tests
/
test-ovsdb.c
diff --git
a/tests/test-ovsdb.c
b/tests/test-ovsdb.c
index 4949e3939e6181bee6d3e65723811038bfab1578..4f44afe86979436cf0ccb193e2e2e274eb3aadfb 100644
(file)
--- 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);
ovsdb_idl_run(idl);
- status = ovsdb_idl_txn_commit(txn);
- if (status != TXN_INCOMPLETE) {
- break;
- }
-
ovsdb_idl_wait(idl);
ovsdb_idl_wait(idl);
+ ovsdb_idl_txn_wait(txn);
poll_block();
}
printf("%03d: commit, status=%s\n",
poll_block();
}
printf("%03d: commit, status=%s\n",