mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-15 22:59:43 +00:00
Support loading configuration from database.
This commit is contained in:
@@ -494,7 +494,8 @@ seaf_repo_manager_get_repo_history_limit (SeafRepoManager *mgr,
|
||||
get_limit, &per_repo_days);
|
||||
if (ret == 0) {
|
||||
/* If per repo value is not set, return the global one. */
|
||||
return mgr->seaf->keep_history_days;
|
||||
per_repo_days = seaf_cfg_manager_get_config_int (mgr->seaf->cfg_mgr,
|
||||
"history", "keep_days");
|
||||
}
|
||||
|
||||
if (per_repo_days < 0) {
|
||||
|
Reference in New Issue
Block a user