ovs-vsctl: Update will be discarded when multiple ovs-vsctl are executed
authorKen Ajiro <ajiro@mxw.nes.nec.co.jp>
Tue, 28 Jan 2014 01:20:43 +0000 (01:20 +0000)
committerBen Pfaff <blp@nicira.com>
Tue, 4 Feb 2014 01:13:49 +0000 (17:13 -0800)
When two ovs-vsctl update map type column at same time, one ovs-vsctl's
update will be discarded although all ovs-vsctl succeeded. This patch
fixes this issue.

Signed-off-by: Ken Ajiro <ajiro@mxw.nes.nec.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-vsctl.c

index 528b40c..af6ae5f 100644 (file)
@@ -3352,6 +3352,7 @@ set_column(const struct vsctl_table_class *table,
 
         ovsdb_datum_union(&datum, ovsdb_idl_read(row, column),
                           &column->type, false);
+        ovsdb_idl_txn_verify(row, column);
         ovsdb_idl_txn_write(row, column, &datum);
     } else {
         struct ovsdb_datum datum;