projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovsdb: Add new "mutation" operation to transactions.
[openvswitch]
/
ovsdb
/
transaction.c
diff --git
a/ovsdb/transaction.c
b/ovsdb/transaction.c
index d5e3601678b3bf3ccd4599e32999ba8e734eabea..02cfeebf1aba21709a0eb103bdd127f4ca802ece 100644
(file)
--- a/
ovsdb/transaction.c
+++ b/
ovsdb/transaction.c
@@
-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)
{
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;
}
if (txn_row->new) {
txn_row->new->txn_row = NULL;
}