Make changes_callback end request when limit=1
authorBenjamin Bastian <benjamin.bastian@gmail.com>
Fri, 13 Dec 2013 22:31:30 +0000 (14:31 -0800)
committerRobert Newson <rnewson@apache.org>
Thu, 7 Aug 2014 16:00:36 +0000 (17:00 +0100)
commitc0f03829df9444c72e3b5c73143d2ada3f3ca0e2
tree40df2945598614c419b045bed1410c581fc24790
parent129b7c17e12752508004b3af4b548e48f981bd2d
Make changes_callback end request when limit=1

Prior to this commit, the limit was hit when limit=0 by the first
changes_callback function clause. This makes maybe_finish end the
request when limit=1, so that it doesn't have to wait for another change
to end the request.

BugzID: 26166
src/global_changes_httpd.erl