Skip to content

Commit

Permalink
jsonrpc-server: rename ovsdb_jsonrpc_monitor_get_initial()
Browse files Browse the repository at this point in the history
rename ovsdb_jsonrpc_monitor_get_initial() to
ovsdb_monitor_get_initial()

Signed-off-by: Andy Zhou <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
azhou-nicira committed May 30, 2015
1 parent dbc1cfb commit 51df26a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ovsdb/jsonrpc-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,8 +1093,8 @@ static const struct ovsdb_replica_class ovsdb_jsonrpc_replica_class;
struct ovsdb_jsonrpc_monitor *ovsdb_jsonrpc_monitor_find(
struct ovsdb_jsonrpc_session *, const struct json *monitor_id);
static void ovsdb_monitor_destroy(struct ovsdb_replica *);
static struct json *ovsdb_jsonrpc_monitor_get_initial(
const struct ovsdb_jsonrpc_monitor *);
static struct json *ovsdb_monitor_get_initial(
const struct ovsdb_monitor *);

static bool
parse_bool(struct ovsdb_parser *parser, const char *name, bool default_value)
Expand Down Expand Up @@ -1384,7 +1384,7 @@ ovsdb_jsonrpc_monitor_create(struct ovsdb_jsonrpc_session *s, struct ovsdb *db,
}
}

return jsonrpc_create_reply(ovsdb_jsonrpc_monitor_get_initial(m),
return jsonrpc_create_reply(ovsdb_monitor_get_initial(m->dbmon),
request_id);

error:
Expand Down Expand Up @@ -1811,14 +1811,14 @@ ovsdb_monitor_commit(struct ovsdb_replica *replica,
}

static struct json *
ovsdb_jsonrpc_monitor_get_initial(const struct ovsdb_jsonrpc_monitor *m)
ovsdb_monitor_get_initial(const struct ovsdb_monitor *dbmon)
{
struct ovsdb_monitor_aux aux;
struct shash_node *node;
struct json *json;

ovsdb_monitor_init_aux(&aux, m->dbmon);
SHASH_FOR_EACH (node, &m->dbmon->tables) {
ovsdb_monitor_init_aux(&aux, dbmon);
SHASH_FOR_EACH (node, &dbmon->tables) {
struct ovsdb_monitor_table *mt = node->data;

if (mt->select & OJMS_INITIAL) {
Expand All @@ -1829,7 +1829,7 @@ ovsdb_jsonrpc_monitor_get_initial(const struct ovsdb_jsonrpc_monitor *m)
}
}
}
json = ovsdb_jsonrpc_monitor_compose_table_update(m, true);
json = ovsdb_monitor_compose_table_update(dbmon, true);
return json ? json : json_object_create();
}

Expand Down

0 comments on commit 51df26a

Please sign in to comment.