From 8bc915de7a08d5b4210ba768d56f15211927d1e7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 8 Dec 2009 09:48:37 -0800 Subject: 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. --- tests/test-ovsdb.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tests/test-ovsdb.c') 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(); } -- cgit v1.2.3