[ovs-dev] [PATCH] ovsdb-idl.c: Increase seqno for change-tracking of table references.

Han Zhou zhouhan at gmail.com
Fri Oct 5 19:14:23 UTC 2018


From: Han Zhou <hzhou8 at ebay.com>

This is an enhancement for commit:
102781c ovsdb-idl: Track changes for table references.

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

Signed-off-by: Han Zhou <hzhou8 at ebay.com>
---
 lib/ovsdb-idl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c
index 6a19b07..9f44cef 100644
--- a/lib/ovsdb-idl.c
+++ b/lib/ovsdb-idl.c
@@ -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) {
-- 
2.1.0



More information about the dev mailing list