From: Ben Pfaff Date: Wed, 27 Jan 2010 22:12:35 +0000 (-0800) Subject: ovsdb-idl: Make rows inserted by transaction appear during table iteration. X-Git-Tag: v1.0.0~259^2~232 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=987ae961590b56f1526a17d3bb15c38fd5e9caf9;p=sliver-openvswitch.git ovsdb-idl: Make rows inserted by transaction appear during table iteration. --- diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index fd4c915f0..960e0866d 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -799,7 +799,7 @@ next_real_row(struct ovsdb_idl_table *table, struct hmap_node *node) struct ovsdb_idl_row *row; row = CONTAINER_OF(node, struct ovsdb_idl_row, hmap_node); - if (!ovsdb_idl_row_is_orphan(row)) { + if (row->new || !ovsdb_idl_row_is_orphan(row)) { return row; } }