aboutsummaryrefslogtreecommitdiff
path: root/tests/test-ovsdb.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-12-08 09:48:37 -0800
committerBen Pfaff <blp@nicira.com>2009-12-08 10:59:46 -0800
commit8bc915de7a08d5b4210ba768d56f15211927d1e7 (patch)
tree48b99d35c8645f3c14d168aaf29efda7b172d294 /tests/test-ovsdb.c
parent475281c01bd655c49f086d62d0cb4055a8f8d74b (diff)
ovsdb-idl: Update IDL data when "set" functions are called.
Until now, the "set" functions generated by the IDL updated the data in the database (during commit) but not the data exposed by the IDL in its data structures. This was just an oversight, so this commit causes the data exposed by IDL to be updated also.
Diffstat (limited to 'tests/test-ovsdb.c')
-rw-r--r--tests/test-ovsdb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c
index 4949e393..1f697b4f 100644
--- a/tests/test-ovsdb.c
+++ b/tests/test-ovsdb.c
@@ -1476,13 +1476,8 @@ 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);
poll_block();
}