From c2bffba3ee2c8f67863d2714c8d11acaec39632f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 6 Nov 2009 12:26:00 -0800 Subject: [PATCH] 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. --- ovsdb/jsonrpc-server.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2