2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-27 15:18:06 +00:00

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.
This commit is contained in:
Ben Pfaff
2009-11-06 12:26:00 -08:00
parent 6e57173fab
commit c2bffba3ee

View File

@@ -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