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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user