2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 22:35:15 +00:00

ovsdb-idl.c: Increase seqno for change-tracking of table references.

This fixes the change-tracking feature.  The seqno change is needed so that
the change-tracking helper function ..._is_new() can work properly.

Fixes: 102781cc02 ("ovsdb-idl: Track changes for table references.")
Signed-off-by: Han Zhou <hzhou8@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Han Zhou
2018-10-05 12:14:23 -07:00
committed by Ben Pfaff
parent e7fc91d7d5
commit ca545a787a

View File

@@ -2359,6 +2359,9 @@ add_tracked_change_for_references(struct ovsdb_idl_row *row)
ovsdb_idl_track_is_set(row->table)) {
ovs_list_push_back(&row->table->track_list,
&row->track_node);
row->change_seqno[OVSDB_IDL_CHANGE_MODIFY]
= row->table->change_seqno[OVSDB_IDL_CHANGE_MODIFY]
= row->table->db->change_seqno + 1;
const struct ovsdb_idl_arc *arc;
LIST_FOR_EACH (arc, dst_node, &row->dst_arcs) {