1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-09 19:29:03 +00:00

Support loading configuration from database.

This commit is contained in:
cuihaikuo
2017-09-07 17:01:56 +08:00
parent 1dbc15f38e
commit b11f861fbd
25 changed files with 536 additions and 111 deletions

View File

@@ -91,6 +91,10 @@ seafile_session_new(const char *central_config_dir,
goto onerror;
}
session->cfg_mgr = seaf_cfg_manager_new (session);
if (!session->cfg_mgr)
goto onerror;
if (load_thread_pool_config (session) < 0) {
seaf_warning ("Failed to load thread pool config.\n");
goto onerror;
@@ -193,6 +197,9 @@ seafile_session_init (SeafileSession *session)
if (seaf_quota_manager_init (session->quota_mgr) < 0)
return -1;
if (seaf_cfg_manager_init (session->cfg_mgr) < 0)
return -1;
seaf_mq_manager_init (session->mq_mgr);
return 0;