1
0
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:
Xiangyue Cai
2021-11-06 10:39:23 +08:00
committed by GitHub
parent 086327d369
commit 25fa59d06a
3 changed files with 23 additions and 1 deletions

View File

@@ -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);