ovsdb: Change the way connection duration time is reported in Manager table.
authorAndrew Evans <aevans@nicira.com>
Wed, 9 Mar 2011 18:46:57 +0000 (10:46 -0800)
committerAndrew Evans <aevans@nicira.com>
Wed, 9 Mar 2011 18:46:57 +0000 (10:46 -0800)
commita4613b01abefdadf53dbf03025748fae3230eb68
tree79cb6fb9f8920fcc04b60c38c75083350bd20482
parent24190e86c8ddedc3b20669e5eeb0ab5fc00a6255
ovsdb: Change the way connection duration time is reported in Manager table.

Commit 0b3e7a8b71 (ovsdb-server: Write manager status information to Manager
table.) attempted to provide managers with the ability to debug manager-related
connection problems, but it turns out that reporting "time_in_state" is not
very useful, because the state is constantly changing. What people really want
is the time each manager has been connected or disconnected, depending on the
current connection state.

Replace "time_in_state" key with "time_connected" and "time_disconnected"
keys. Only one exists at a time, and time is in seconds.

Bug #4833.
ovsdb/jsonrpc-server.c
ovsdb/jsonrpc-server.h
ovsdb/ovsdb-server.c