Skip to content

Commit

Permalink
Don't need ccnet_db_name config
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Nov 5, 2024
1 parent 33764d6 commit 69b7940
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions common/seaf-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 0 additions & 4 deletions fileserver/fileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 69b7940

Please sign in to comment.