~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to ovsdb/server.c

  • Committer: James Page
  • Date: 2013-08-21 10:16:57 UTC
  • mfrom: (1.1.20)
  • Revision ID: james.page@canonical.com-20130821101657-3o0z0qeiv5zkwlzi
New upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
    return shash_add_once(&server->dbs, db->schema->name, db);
133
133
}
134
134
 
 
135
/* Removes 'db' from the set of databases served out by 'server'.  Returns
 
136
 * true if successful, false if there is no db associated with
 
137
 * db->schema->name. */
 
138
bool
 
139
ovsdb_server_remove_db(struct ovsdb_server *server, struct ovsdb *db)
 
140
{
 
141
    void *data = shash_find_and_delete(&server->dbs, db->schema->name);
 
142
    if (data) {
 
143
        return true;
 
144
    }
 
145
    return false;
 
146
}
 
147
 
135
148
/* Destroys 'server'. */
136
149
void
137
150
ovsdb_server_destroy(struct ovsdb_server *server)