From: Ben Pfaff Date: Fri, 6 Nov 2009 20:26:00 +0000 (-0800) Subject: ovsdb: Make JSON-RPC sessions other than the first work. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2bffba3ee2c8f67863d2714c8d11acaec39632f;p=openvswitch ovsdb: Make JSON-RPC sessions other than the first work. The number of open sessions wasn't being tracked properly, so closing a JSON-RPC database session made it impossible to open any more. --- diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c index f6770640..e97a2c33 100644 --- a/ovsdb/jsonrpc-server.c +++ b/ovsdb/jsonrpc-server.c @@ -263,6 +263,7 @@ ovsdb_jsonrpc_session_open(struct ovsdb_jsonrpc_server *svr, s->rpc = jsonrpc_open(stream); hmap_init(&s->triggers); list_init(&s->completions); + svr->n_sessions++; } static void