2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

ovsdb-idl: Avoid sending redundant conditional monitoring updates

In case connection is reset when there are buffered but unsent
conditions, these conditions will be sent as the new "monitor_cond"
message that will be sent after the idl reconnects.

Without this patch, those conditions will be unnecessarily sent again
with following monitoring condition update message.

Signed-off-by: Andy Zhou <azhou@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Andy Zhou
2016-12-19 22:39:53 -08:00
parent 790e2d4b1d
commit 5351980b04

View File

@@ -345,6 +345,7 @@ ovsdb_idl_clear(struct ovsdb_idl *idl)
struct ovsdb_idl_table *table = &idl->tables[i];
struct ovsdb_idl_row *row, *next_row;
table->cond_changed = false;
if (hmap_is_empty(&table->rows)) {
continue;
}
@@ -370,6 +371,7 @@ ovsdb_idl_clear(struct ovsdb_idl *idl)
}
}
idl->cond_changed = false;
ovsdb_idl_track_clear(idl);
if (changed) {