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:
@@ -345,6 +345,7 @@ ovsdb_idl_clear(struct ovsdb_idl *idl)
|
|||||||
struct ovsdb_idl_table *table = &idl->tables[i];
|
struct ovsdb_idl_table *table = &idl->tables[i];
|
||||||
struct ovsdb_idl_row *row, *next_row;
|
struct ovsdb_idl_row *row, *next_row;
|
||||||
|
|
||||||
|
table->cond_changed = false;
|
||||||
if (hmap_is_empty(&table->rows)) {
|
if (hmap_is_empty(&table->rows)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -370,6 +371,7 @@ ovsdb_idl_clear(struct ovsdb_idl *idl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
idl->cond_changed = false;
|
||||||
ovsdb_idl_track_clear(idl);
|
ovsdb_idl_track_clear(idl);
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
|
Reference in New Issue
Block a user