diff --git a/python/seaserv/api.py b/python/seaserv/api.py index 486aa9b..2f442ef 100644 --- a/python/seaserv/api.py +++ b/python/seaserv/api.py @@ -276,8 +276,8 @@ class SeafileAPI(object): @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' attribute. In the next call, pass in the returned 'scan_stat'. - @limit: Advisory maximum number of result entries returned. Sometimes more than @limit - entries will be returned. + @limit: Advisory maximum number of commits to traverse. Sometimes more than @limit + commits will be traversed. Return a list of DeletedEntry objects (lib/repo.vala). If no more deleted entries can be returned within the given time frame (specified by diff --git a/server/repo-op.c b/server/repo-op.c index d4cc85c..8428376 100644 --- a/server/repo-op.c +++ b/server/repo-op.c @@ -5259,7 +5259,7 @@ scan_commits_for_collect_deleted (CollectDelData *data, } seaf_commit_unref (commit); - if (++scan_num == limit && (!list || !list->next)) { + if (++scan_num >= limit && (!list || !list->next)) { break; } }