bridge: Update controller connection status correctly.
authorAndrew Evans <aevans@nicira.com>
Thu, 30 Jun 2011 22:15:46 +0000 (15:15 -0700)
committerAndrew Evans <aevans@nicira.com>
Fri, 1 Jul 2011 17:38:35 +0000 (10:38 -0700)
commit5d27908667cfa34f7786fdc88e9e09078453637a
tree58644b60f2faea78bc95d2dd539eeaf5a91ee7c6
parent316dec68688aeccc1bbb90e555d9c0ca259d9fc7
bridge: Update controller connection status correctly.

Updates to status-related columns in the Controller table can be lost if there
are multiple bridges with different sets of controllers. This commit fixes this
behavior by first accumulating status for all controllers on all bridges, then
making one pass over all rows in the Controller tables, updating the status of
each.

Bug #6185.
Reported-by: Michael Hu <mhu@nicira.com>
ofproto/connmgr.c
vswitchd/bridge.c