ovsdb-server: Preserve remotes across crash and restart.
authorBen Pfaff <blp@nicira.com>
Thu, 13 Jun 2013 19:25:39 +0000 (12:25 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Jun 2013 19:34:08 +0000 (12:34 -0700)
commitcf49ad972f69b1f4a0e9e1d8f42930eb0d2cc616
tree99d4d7f07c563e82178760c04011d3a079bfb6be
parent4bd4deaae7ed0f458dce1493662e6edf32ef0f03
ovsdb-server: Preserve remotes across crash and restart.

Commit b421d2af0ab (ovsdb-server: Add commands for adding and removing
remotes) made it possible to make ovsdb-server connect to OVS managers only
after ovs-vswitchd has completed its initial configuration.  But this
results in an undesirable effect: whenever ovsdb-server crashes, the
monitor restarts its, but ovsdb-server can no longer connect to the manager
because the remotes were added during runtime and that information is lost
during the crash.

This commit fixes the problem.

Signed-off-by: Ben Pfaff <blp@nicira.com>
ovsdb/ovsdb-server.c
tests/ovsdb-server.at