ovsdb: Add new "mutation" operation to transactions.
[openvswitch] / ovsdb / transaction.c
index d5e3601678b3bf3ccd4599e32999ba8e734eabea..02cfeebf1aba21709a0eb103bdd127f4ca802ece 100644 (file)
@@ -82,6 +82,9 @@ ovsdb_txn_destroy(struct ovsdb_txn *txn, void (*cb)(struct ovsdb_txn_row *))
                             struct ovsdb_txn_row, hmap_node,
                             &txn_table->txn_rows)
         {
+            if (txn_row->old) {
+                txn_row->old->txn_row = NULL;
+            }
             if (txn_row->new) {
                 txn_row->new->txn_row = NULL;
             }