bridge: Resend status changes to database if previous transaction
authorRyan Wilson <wryan@nicira.com>
Fri, 30 May 2014 19:49:45 +0000 (12:49 -0700)
committerAlex Wang <alexw@nicira.com>
Fri, 30 May 2014 20:15:18 +0000 (13:15 -0700)
commit6eedeb5ffbe4f822149d7c2e641079733d61d4a8
treeaac3648f1353a186d156a358b9f556e161e15482
parent86f64e62bc9195c597459abf6cc1c847d4372bb0
bridge: Resend status changes to database if previous transaction
was not successful.

Bridge, port and interface status changes are not sent to the
database if the connectivity and netdev sequence numbers have not
changed. However, if the previous database transaction fails, then
status changes will not be updated in the database until the
connectivity and netdev sequence numbers change again. This could
leave the database in an incorrect state for a long period of time.

This patch always sends status changes to the database if the last
transaction was not successful.

Bug #1256577
Signed-off-by: Ryan Wilson <wryan@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c