mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-31 15:11:08 +00:00
use c fileserver when sqlite3 (#509)
This commit is contained in:
@@ -488,6 +488,17 @@ should_start_go_fileserver()
|
||||
ret = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if (ret) {
|
||||
char *type = NULL;
|
||||
type = g_key_file_get_string (key_file, "database", "type", NULL);
|
||||
if (!type || g_strcmp0 (type, "mysql") != 0) {
|
||||
seaf_message ("Use C fileserver because go fileserver does not support sqlite.");
|
||||
ret = FALSE;
|
||||
}
|
||||
g_free (type);
|
||||
}
|
||||
|
||||
out:
|
||||
g_key_file_free (key_file);
|
||||
g_free (seafile_conf);
|
||||
|
Reference in New Issue
Block a user