ovsdb-server: Send update for _version for changes due to weak ref removal.
authorBen Pfaff <blp@nicira.com>
Tue, 1 Apr 2014 21:33:24 +0000 (14:33 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 3 Apr 2014 14:53:30 +0000 (07:53 -0700)
commit5cd9f691199d2c75dd477f25869bcd3515ea71e7
tree6809de411a1bf270f6a22c5eaf62ef8f64ea248e
parent1af09488c1d11b7980760a32d280506dc23ac32f
ovsdb-server: Send update for _version for changes due to weak ref removal.

When a row was deleted, and that caused the transaction manager to remove
a remaining weak reference to the row, and no other change had been made
to the row in that transaction, and a client was monitoring modifications
of the _version column in the row, then the monitor update for the column
did not include the old contents of the _version column, even though it
should have.  This commit fixes the problem.

Probably most clients only look at the new value of the column, if they
monitor _version at all, and this bug is really old, so it's probably
not a serious bug.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
ovsdb/transaction.c
tests/ovsdb-monitor.at