This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix limit=N for non-admins by counting post-filter
Prior to this commit, the _db_updates endpoint would often return less than N results for limit=N queries, even when there were N changes to return. This was because the limiting was done by passing the limit parameter to fabric:changes, which doesn't account for the per-user filtering done in global_changes_httpd. This commit adds explicit counting of the filtered changes in global_changes_httpd and manually ends the request when N post-filter changes have been seen. BugzID: 25272
- Loading branch information
1 parent
1895630
commit d58fce19e855072634d4bcfacfeaab7d2c93f0b4
Showing
1 changed file
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters