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

Fix bug in returning deleted files.

This commit is contained in:
Jonathan Xu
2017-02-11 17:24:33 +08:00
parent 08fb1cb827
commit 4ce41cfd6a
2 changed files with 3 additions and 3 deletions

View File

@@ -276,8 +276,8 @@ class SeafileAPI(object):
@scan_stat: An opaque status returned by the last call. In the first call, None @scan_stat: An opaque status returned by the last call. In the first call, None
must be passed. The last entry of the result list contains a 'scan_stat' must be passed. The last entry of the result list contains a 'scan_stat'
attribute. In the next call, pass in the returned 'scan_stat'. attribute. In the next call, pass in the returned 'scan_stat'.
@limit: Advisory maximum number of result entries returned. Sometimes more than @limit @limit: Advisory maximum number of commits to traverse. Sometimes more than @limit
entries will be returned. commits will be traversed.
Return a list of DeletedEntry objects (lib/repo.vala). Return a list of DeletedEntry objects (lib/repo.vala).
If no more deleted entries can be returned within the given time frame (specified by If no more deleted entries can be returned within the given time frame (specified by

View File

@@ -5259,7 +5259,7 @@ scan_commits_for_collect_deleted (CollectDelData *data,
} }
seaf_commit_unref (commit); seaf_commit_unref (commit);
if (++scan_num == limit && (!list || !list->next)) { if (++scan_num >= limit && (!list || !list->next)) {
break; break;
} }
} }