1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-07 02:10:05 +00:00

Improve code after use named pipe for RPC and support python 3.

This commit is contained in:
Jonathan Xu
2019-07-01 16:41:41 +08:00
parent c73916ef77
commit c142d4bf4f
30 changed files with 206 additions and 1052 deletions

View File

@@ -202,27 +202,10 @@ seaf_commit_manager_new (SeafileSession *seaf)
int
seaf_commit_manager_init (SeafCommitManager *mgr)
{
#ifdef SEAFILE_SERVER
#ifdef FULL_FEATURE
if (seaf_obj_store_init (mgr->obj_store, TRUE, seaf->ev_mgr) < 0) {
if (seaf_obj_store_init (mgr->obj_store) < 0) {
seaf_warning ("[commit mgr] Failed to init commit object store.\n");
return -1;
}
#else
if (seaf_obj_store_init (mgr->obj_store, FALSE, NULL) < 0) {
seaf_warning ("[commit mgr] Failed to init commit object store.\n");
return -1;
}
#endif
#else
if (seaf_obj_store_init (mgr->obj_store, TRUE, seaf->ev_mgr) < 0) {
seaf_warning ("[commit mgr] Failed to init commit object store.\n");
return -1;
}
#endif
return 0;
}