You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 14:06:09 UTC
[08/11] git commit: This was a silly off-by-one error while counting
This was a silly off-by-one error while counting
The start message doesn't count as a row so we don't want to adjust
Acc#acc.limit based on that message.
BugzId: 26165
Project: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/commit/7e3839ce
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/tree/7e3839ce
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/diff/7e3839ce
Branch: refs/heads/windsor-merge
Commit: 7e3839cecb7c158270ff7d5a1d8837ca94603cb8
Parents: df64e86
Author: Paul J. Davis <pa...@gmail.com>
Authored: Fri Dec 13 14:38:23 2013 -0600
Committer: Robert Newson <rn...@apache.org>
Committed: Fri Aug 1 13:03:15 2014 +0100
----------------------------------------------------------------------
src/global_changes_httpd.erl | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/blob/7e3839ce/src/global_changes_httpd.erl
----------------------------------------------------------------------
diff --git a/src/global_changes_httpd.erl b/src/global_changes_httpd.erl
index f3680c6..931aa55 100644
--- a/src/global_changes_httpd.erl
+++ b/src/global_changes_httpd.erl
@@ -135,12 +135,11 @@ changes_callback(start, Acc) ->
#acc{resp=Req} = Acc,
FirstChunk = "{\"results\":[\n",
{ok, Resp} = chttpd:start_delayed_json_response(Req, 200, [], FirstChunk),
- Acc1 = Acc#acc{
+ {ok, Acc#acc{
resp=Resp,
prepend="",
last_data_sent_time=os:timestamp()
- },
- maybe_finish(Acc1);
+ }};
changes_callback({change, Change0}, Acc) ->
#acc{resp=Resp, prepend=Prepend, username=Username} = Acc,
case transform_change(Username, Resp, Change0) of