ovs-brcompatd: Handle TXN_UNCHANGED status.
authorBen Pfaff <blp@nicira.com>
Fri, 18 Dec 2009 18:21:28 +0000 (10:21 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 18 Dec 2009 18:21:48 +0000 (10:21 -0800)
This status was introduced several commits ago but not added to the switch
statement here.

Also, change the "status" variable to type enum ovsdb_idl_txn_status so
that GCC will warn about future additions.

vswitchd/ovs-brcompatd.c

index a446e7c..ad1c844 100644 (file)
@@ -1183,7 +1183,7 @@ main(int argc, char *argv[])
     for (;;) {
         const struct ovsrec_open_vswitch *ovs;
         struct ovsdb_idl_txn *txn;
-        int status;
+        enum ovsdb_idl_txn_status status;
         unsigned int new_idl_seqno;
 
         ovsdb_idl_run(idl);
@@ -1249,6 +1249,7 @@ main(int argc, char *argv[])
             ovs_fatal(0, "transaction aborted");
         
         case TXN_SUCCESS:
+        case TXN_UNCHANGED:
             break;
         
         case TXN_TRY_AGAIN: