1
0
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:
feiniks
2020-03-28 14:00:12 +08:00
committed by GitHub
parent 3bd274762a
commit 9b28e93a09

View File

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