mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-24 04:29:52 +00:00
continue get trash repo even if the repo is destroyed (#333)
This commit is contained in:
@@ -2570,7 +2570,7 @@ collect_trash_repo (SeafDBRow *row, void *data)
|
|||||||
|
|
||||||
|
|
||||||
if (!repo_id || !repo_name || !head_id || !owner_id)
|
if (!repo_id || !repo_name || !head_id || !owner_id)
|
||||||
return FALSE;
|
return TRUE;
|
||||||
|
|
||||||
SeafileTrashRepo *trash_repo = g_object_new (SEAFILE_TYPE_TRASH_REPO,
|
SeafileTrashRepo *trash_repo = g_object_new (SEAFILE_TYPE_TRASH_REPO,
|
||||||
"repo_id", repo_id,
|
"repo_id", repo_id,
|
||||||
@@ -2588,7 +2588,7 @@ collect_trash_repo (SeafDBRow *row, void *data)
|
|||||||
if (!commit) {
|
if (!commit) {
|
||||||
seaf_warning ("Commit %s not found in repo %s\n", head_id, repo_id);
|
seaf_warning ("Commit %s not found in repo %s\n", head_id, repo_id);
|
||||||
g_object_unref (trash_repo);
|
g_object_unref (trash_repo);
|
||||||
return FALSE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
g_object_set (trash_repo, "encrypted", commit->encrypted, NULL);
|
g_object_set (trash_repo, "encrypted", commit->encrypted, NULL);
|
||||||
seaf_commit_unref (commit);
|
seaf_commit_unref (commit);
|
||||||
|
Reference in New Issue
Block a user