return 0;
}
-void resolve_databases(struct conf_service *service)
-{
- struct database *db = service->databases;
- for (; db; db = db->next)
- resolve_database(service, db);
-}
-
struct database *new_database(const char *id, NMEM nmem)
{
struct database *db;
if (service)
{
inherit_server_settings(service);
- resolve_databases(service);
assert(service->mutex == 0);
pazpar2_mutex_create(&service->mutex, "conf");
}
for (;s ; s = s->next)
{
- resolve_databases(s);
assert(s->mutex == 0);
pazpar2_mutex_create(&s->mutex, "service");
}
{
struct client *cl = client_create();
struct client_list *l;
+
+ resolve_database(se->service, db->database);
+
client_set_database(cl, db);
client_set_session(cl, se);
{
struct database *db = new_database(id, se->session_nmem);
- resolve_database(se->service, db);
-
session_init_databases_fun((void*) se, db);
// New sdb is head of se->databases list
int settings_create_offset(struct conf_service *service, const char *name);
int settings_lookup_offset(struct conf_service *service, const char *name);
void init_settings(struct conf_service *service);
-void resolve_databases(struct conf_service *service);
void settings_read_node_x(xmlNode *n,
void *client_data,
void (*fun)(void *client_data,