diff --git a/common/seaf-utils.c b/common/seaf-utils.c index 0a50e655..9b0ea1f4 100644 --- a/common/seaf-utils.c +++ b/common/seaf-utils.c @@ -156,8 +156,6 @@ load_db_option (SeafileSession *session) option->seafile_db_name = seaf_key_file_get_string (session->config, "database", "db_name", NULL); - option->ccnet_db_name = seaf_key_file_get_string (session->config, "database", "ccnet_db_name", NULL); - option->use_ssl = g_key_file_get_boolean (session->config, "database", "use_ssl", NULL); diff --git a/fileserver/fileserver.go b/fileserver/fileserver.go index f713fdb0..7f1ecf31 100644 --- a/fileserver/fileserver.go +++ b/fileserver/fileserver.go @@ -254,10 +254,6 @@ func loadDBOptionFromFile() (*DBOption, error) { if key, err = section.GetKey("ca_path"); err == nil { dbOpt.CaPath = key.String() } - if key, err = section.GetKey("ccnet_db_name"); err != nil { - return dbOpt, fmt.Errorf("no database ccnet_db_name in seafile.conf.") - } - dbOpt.CcnetDbName = key.String() return dbOpt, nil }