Inherit service settings when creating a new DB for the session DB
authorDennis Schafroth <dennis@indexdata.com>
Thu, 19 Apr 2012 10:45:16 +0000 (12:45 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 19 Apr 2012 10:45:16 +0000 (12:45 +0200)
src/session.c

index 207f47c..3fb79b9 100644 (file)
@@ -821,8 +821,7 @@ void session_init_databases(struct session *se)
 static struct session_database *load_session_database(struct session *se, 
                                                       char *id)
 {
-    struct database *db = new_database(id, se->session_nmem);
-
+    struct database *db = new_database_inherit_settings(id, se->session_nmem, se->service->settings);
     session_init_databases_fun((void*) se, db);
 
     // New sdb is head of se->databases list