bridge: Make configuration database records valid all the time.
authorBen Pfaff <blp@nicira.com>
Thu, 10 Jun 2010 21:32:32 +0000 (14:32 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Jun 2010 19:43:03 +0000 (12:43 -0700)
commit1e0b752d3d6ff8bd63831ec32a39b4900b963d76
tree8982d1af12795403644b9210c2dc1e01a4a26a17
parentc5187f17b6f0db57fa81f5f2ef2cd7c619791651
bridge: Make configuration database records valid all the time.

Before, it was possible for records in the configuration database to
disappear, so all of the ovsrec pointers inside bridge structures had
comments cautioning against their use except during reconfiguration.  But
now that the bridge has direct control over when ovsdb_idl_run() is called,
it can ensure that bridge_reconfigure() is always called immediately
whenever the IDL data structures change.  That means that we can use the
ovsrec configuration at any time after the reconfiguration process
initializes them, not just during reconfiguration.
vswitchd/bridge.c